[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: sgml to xml

Subject: Re: sgml to xml
From: "Christopher R. Maden" <crism@xxxxxxxxx>
Date: Wed, 21 Oct 2009 16:04:48 -0400
Re:  sgml to xml
a kusa wrote:
> Now I am thinking that I don't have to run this data through any SGML
> -> XML converters can run the transformation on this data as is. I
> still have to modify the DOCTYPE declarations to include SYSTEM
> identifiers vs. PUBLIC.

If the DTD uses SGML syntax, e.g.

<!ELEMENT foo - - (#PCDATA)>

instead of XML syntax, e.g.


then the XML parser will choke on it.  You may be better off stripping
the DOCTYPE declarations rather than modifying them to have system
identifiers.  However, if the DTD provides any default attributes, that
may not be an option, so you will still need to do an SGML-to-XML
conversion.  (This last part is relevant to this list; default attribute
values can be a source of surprise to XSLT conversions.  The default
values can be built into the transformation instead, though.)

That said, osx does the job rather nicely; I would just use (and have
used) that.

Chris Maden, text nerd  <URL: http://crism.maden.org/ >
bWhat a dream life would seem if you could see the world from
 inside an Etch-A-Sketch.b b Andrew Bird, bTea & Thorazineb
GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.