[ http://issues.apache.org/jira/browse/XALANC-503?page=all ] David Bertoni closed XALANC-503: --------------------------------
> omit-xml-declaration not working when encoding different from UTF-8 > ------------------------------------------------------------------- > > Key: XALANC-503 > URL: http://issues.apache.org/jira/browse/XALANC-503 > Project: XalanC > Type: Bug > Components: XalanC > Versions: 1.9 > Environment: Windows. Tested on Xalan 1-9 > Reporter: Jeff Krog > Fix For: CurrentCVS > > Here's a faulting output header : > <xsl:output method="xml" omit-xml-declaration="yes" indent="yes" > encoding="ISO-8859-1" /> > (notice that encoding is not UTF-8, it works with UTF-8). > This produces an xml-header in the output. > Full sample code : > *********** > XSL (myxsl.xsl): > <?xml version="1.0" encoding="ISO-8859-1"?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > <xsl:output method="xml" omit-xml-declaration="yes" indent="yes" > encoding="ISO-8859-1" /> > <xsl:template match="/"> > <DATA> > not working. > </DATA> > </xsl:template> > </xsl:stylesheet> > ********* > XML (myxml.xml): > <?xml version="1.0" encoding="ISO-8859-1"?> > <DATA>anything</DATA> > ******* > OUTPUT : > C:\Dev\Xalan-C_1_9_0-win32-msvc_60\bin>XalanTransform myxml.xml myxsl.xsl > <?xml version="1.0" encoding="ISO-8859-1"?> > <DATA> > not working. > </DATA> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
