Altova Mailing List Archives

[xsl] [BUG] Resin XSL

From: Jean-Baptiste Quenot <jb.quenot@-------------->
Date: 8/1/2001 3:24:00 PM
Input document:

<?xml version='1.0'?>
<section><para>Paragraph 1</para></section>
<section> <para>Paragraph 2</para></section>


<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="" version='1.0'>
<xsl:template match='section/para[1]'>
<xsl:template match='para'>

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:


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 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.