RE: xml to xml identity transforms, and reading the DTD

Subject: RE: xml to xml identity transforms, and reading the DTD
From: Chris Powell <sooty@xxxxxxxxx>
Date: Thu, 8 Jun 2000 15:58:44 -0400 (EDT)

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


Current Thread