Re: Top level XTF tag and XML pretty printing
Jon Smirl <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
On Mon, 24 Oct 2005 07:34:42 -0700, Michael Vincent van Rantwijk wrote: > Jon Smirl wrote: >> With this input file... >> >> <?xml version="1.0" ?> >> <ns:mydoctag xmlns:ns="mynamespace"/> >> >> mynamespace:mydoctag is implemented as an XTF component. The input XML >> format does not use xml-stylesheet type stylesheets. >> >> Currently my XTF implementation is returning an error on the creation of >> the top level mydoctag element per the XTF readme. This results in a >> generic XML element being created. >> >> As far as I can tell there is no way to suppress XML pretty printing in >> this case. >> >> A fix for this could be to always suppress pretty printing if an XTF >> component is top level, or add an attribute to top level XTF components to >> control pretty printing. Is there some other way to suppress pretty >> printing given that I can't change the input format to add an >> xml-stylesheet PI? > > Have you tried to set/add "layout.xml.prettyprint" to true, does that help? Wouldn't that suppress pretty printing for all documents, not just my special XTF ones? I don't want to change pretty print behavior for anything except my special XTF documents. > > Michael -- Jon Smirl, [email protected]