Altova Mailing List Archives
>xsl-list Archive Home
>Recent entries
>Thread Prev -
>Thread Next - RE: [xsl] [BUG] Resin XSL
[xsl] [BUG] Resin XSL
To:
Date: 8/1/2001 3:24:00 PM
Input document: <?xml version='1.0'?> <article> <section><para>Paragraph 1</para></section> <section> <para>Paragraph 2</para></section> </article> Stylesheet: <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:template match='section/para[1]'> <sectpara><xsl:apply-templates/></sectpara> </xsl:template> <xsl:template match='para'> <normalpara><xsl:apply-templates/></normalpara> </xsl:template> </xsl:stylesheet> Resin Output: <?xml version="1.0" encoding="ISO-8859-1"?> <sectpara>Paragraph 1</sectpara> <normalpara>Paragraph 2</normalpara> xsltproc output: <?xml version="1.0"?> <sectpara>Paragraph 1</sectpara> <sectpara>Paragraph 2</sectpara> xt-xp or xt-xml4j output: <?xml version="1.0" encoding="utf-8"?> <sectpara>Paragraph 1</sectpara> <sectpara>Paragraph 2</sectpara> As you see, Resin is the only XSL processor which uses the wrong template, just because of the extra space before the second <para> :( BTW, I did not specify any encoding for the output, whereas Resin uses a default encoding of ISO-8859-1... IMHO utf-8 (like xt) or nothing (like xsltproc) should be specified as default. FWIW, all extra spaces are removed from output for readability. Message cross-posted to xsl-list for comments on this... any help will be greatly appreciated. -- Jean-Baptiste Quenot XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Disclaimer
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

