[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xml to xml identity transforms, and reading the DTD
On Thu, 8 Jun 2000, DuCharme, Robert wrote: > >So the question is, do any of the XML parsers which I might plug in to > >(say) Saxon support this minimal level of DTD reading, in which > >default values are NOT applied? > > The issue reminds me of the answer to the classic XSL-L question "How can I > pass along entity references to my output instead of having the entity > values substituted for the references": you're looking for a way to prevent > the parser from doing something that it's required to do by the XML spec, so > (unless some parser author has exposed this kind of behavior as an option) > tinkering directly with parser source code is probably the only way to go > about it. Since I am transforming someone else's valid SGML into a different flavor of XML to suit my own sinister purposes, I just cheat this by modifying the DTD so all the attributes are CDATA #IMPLIED before I use sax to change the SGML to XML. Kind of cheesy but it works for me. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|