DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21193>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21193 Using <xsl:output omit-xml-declaration="yes"/> does not work with XMLFilter [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2003-07-07 14:06 ------- The chain of XMLFilter objects produces SAX events that are ultimately consumed by a Serializer object in the UseXMLFilters sample. The settings on the Serializer object determine how the resulting XML is serialized. You could replace the assignment that creates the Serializer with the following lines, to create a Serializer that omits the XML declaration. [[ java.util.Properties p = OutputPropertiesFactory.getDefaultMethodProperties("xml"); p.setProperty(javax.xml.transform.OutputKeys.OMIT_XML_DECLARATION, "yes"); Serializer serializer = SerializerFactory.getSerializer(p); ]] Alternatively, if you want the serializer's properties to be based on the settings in foo3.xsl, rather than being hard-coded in the Java program, you could create a Templates object from foo3.xsl, create the XMLFilter from that Templates object, and also call the Templates.getOutputProperties method to get the output properties from foo3.xsl for use in creating the Serializer object. I hope that helps.
