DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29545>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29545 omit-xml-declaration ignored Summary: omit-xml-declaration ignored Product: XalanC Version: 1.8 Platform: PC OS/Version: Windows XP Status: NEW Severity: Normal Priority: Other Component: XalanC AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] It appears that the omit-xml-declaration attribute on xsl:output has no effect in 1.8, though it did in 1.6. Here is a sample xml file: <?xml version="1.0" encoding="utf-8"?><body> <div n="0"><head>VARNEY, THE VAMPYRE;</head> </div> </body> Here is a sample xsl file: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xaira="http://natcorp.ox.ac.uk/xaira"> <xsl:output method="xml" omit-xml-declaration="yes"/> <!-- Replace the select path by a path from the root of the document to the bibliography. --> <xsl:template match="div"> <xaira:bibliography> <xsl:copy-of select=".//head"/> </xaira:bibliography> </xsl:template> <!-- Make sure nothing else produces output --> <xsl:template match="text()"/> </xsl:stylesheet> Using XAlanTransform v 1.6 there is no xml declaration. In 1.8 there is one. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]