🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.framemaker.sgml
Article #719

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

#719
From: Jon_White
Date: Fri, 19 Sep 2008 18:44
15 lines
1801 bytes
Hi Harald,

An alternative to manually relaxing your DTD, is to use conditional text in your EDD. For each GeneralRule element that need to export to the DTD differently, you have two copies, one tagged with the condition FrameMaker (or whatever name you want) and the other with XML (or whatever you want).

So you would have:

Element (Container): MyElement
General rule: <TEXT>, (Para | ListUnordered | ListOrdered)*
General rule: (<TEXT> | Para | ListUnordered | ListOrdered)*

When you're in FrameMaker 'mode', you have the EDD set to show the FrameMaker condition and hide the XML condition. When you want to export a DTD, show the XML condition and hide the FrameMaker condition, which will produce a DTD with an XML-legal content model. When you're editing content models, you can show all conditions so that you can see both General Rules side by side (which would of course make the EDD temporarily invalid.

You can also use this method for other purposes, such as adding whole elements to your DTD which don't exist in the FrameMaker world, for instance adding colspec and spanspec elements to your DTD for CALS tables.

Jon
Technical Details
Message-ID: <59b686a8.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!goblin2!goblin.stu.neva.ru!newsfeed.sovam.com!feeder.erje.net!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-7-bit
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.2@webcrossing.la2eafNXanI>
Date: Fri, 19 Sep 2008 11:44:28 -0700
References: <59b686a8.-1@webcrossing.la2eafNXanI>
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!goblin2!goblin.stu.neva.ru!newsfeed.sovam.com!feeder.erje.net!news4us.nl!webcrossing