🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.framemaker.sgml
Article #725

Re: Making a valid XML DTD out of a more general EDD?

#725
From: Jon_White
Date: Sat, 20 Sep 2008 10:39
34 lines
1965 bytes
Hi Harald,

      Correct me if I am wrong, but to make it valid in xml, isn't a complete
      flattening the only way to achieve that?




You're right, the only way to specify mixed content in an XML DTD is the way you wrote it: 

      <!ELEMENT myElement (#PCDATA | element1 | element2 | element3)* >




Your second suggestion sounds like a better fit with what you want to achieve. If you were prepared to do this in your FrameMaker documents �

      Element(Container): myElement





      General Rule: TextFragment, (Para | ListUnordered | ListOrdered)*, (NextBlock1
      | (NextBlock2, subblock3*))*




� and change your existing documents accordingly (I imagine Russ Ward's FrameSLT software could help you here to automate the retagging), you would be able to export straight to XML and export the EDD to XML without any shudder-inducing conditional text.

If you don't want that situation in FrameMaker and you want to wrap the text in an element on export, read-write rules won't help you here. Maybe an XSLT transform can do what you want, but others here would know much more about that subject. You'd still have the manual editing to do on the DTD though, if the content models are not the same in the FrameMaker and XML domains.

Jon
Technical Details
Message-ID: <59b686a8.5@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder4.cambrium.nl!feed.tweaknews.nl!tudelft.nl!txtfeed1.tudelft.nl!news4us.nl!webcrossing
References: <59b686a8.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcc08,7b6fc3c63283a48a
X-Google-Attributes: gidfcc08,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII
From: Jon_White@adobeforums.com
Newsgroups: adobe.framemaker.sgml
Subject: Re: Making a valid XML DTD out of a more general EDD?
Message-ID: <59b686a8.5@webcrossing.la2eafNXanI>
Date: Sat, 20 Sep 2008 03:39:30 -0700
References: <59b686a8.-1@webcrossing.la2eafNXanI>
Lines: 31
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder4.cambrium.nl!feed.tweaknews.nl!tudelft.nl!txtfeed1.tudelft.nl!news4us.nl!webcrossing