You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2004/06/13 12:28:32 UTC

DO NOT REPLY [Bug 29545] New: - omit-xml-declaration ignored

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: xalan-dev@xml.apache.org
        ReportedBy: tony.dodd@btinternet.com


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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org