[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[BUG] Resin XSL

Subject: [BUG] Resin XSL
From: Jean-Baptiste Quenot <jb.quenot@xxxxxxxxxxxxxx>
Date: Thu, 2 Aug 2001 01:19:45 +0200
resin iso 8859 1
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.