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

Re: An unintended incompatibility with xsl:number

Subject: Re: An unintended incompatibility with xsl:number
From: Henry Zongaro <zongaro@xxxxxxxxxx>
Date: Thu, 24 Jun 2010 14:02:10 -0400
 Re: An unintended incompatibility with xsl:number
Hi, Michael.

Michael Kay wrote on 06/24/2010 01:39:46 PM:
> Consider this source document:
> 
> <doc>
> <a>
> <title/>
> </a>
> </doc>
> 
> and this stylesheet:

[snip]
> <xsl:for-each select="//title">
> <xsl:number from="a" count="a" level="single"/>
> </xsl:for-each>
[snip]

> The XSLT 2.0 specification is explicit that the result should be 
> <out>1</out>
> 
> The XSLT 1.0 specification is not quite so clear-cut, but the simplest 
> reading of it is to produce the result <out/>

I tried this with the Xalan-J interpreter and XSLTC.  In both cases, the 
result was

<out>1</out>

I also tried the XSLT compiling processor (mostly unrelated to XSLTC) that 
is included in IBM's Java 6.0.  The result on that processor was

<out/>

Thanks,

Henry
------------------------------------------------------------------
Henry Zongaro
XML Transformation & Query Development
IBM Canada Lab   T/L 313-6044;  Phone +1 905 413-6044
mailto:zongaro@xxxxxxxxxx

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.