Re: Top level XTF tag and XML pretty printing
Michael Vincent van Rantwijk <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
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? Michael