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

RE: [BUG] Resin XSL

Subject: RE: [BUG] Resin XSL
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 2 Aug 2001 10:30:59 +0100
resin xsl
When you find a problem that's clearly specific to one particular processor,
I don't think there's much value in posting it on xsl-list - you should
assume that other users of that processor are more likely to be reached via
the product-specific list.

Mike Kay
Software AG

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> Jean-Baptiste
> Quenot
> Sent: 02 August 2001 00:20
> To: resin-interest
> Cc: xsl-list
> Subject:  [BUG] Resin XSL
>
>
> 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
>


 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.