[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Re: An unintended incompatibility with xsl:number
Subject: [xsl] Re: An unintended incompatibility with xsl:number From: Henry Zongaro <zongaro@xxxxxxxxxx> Date: Thu, 24 Jun 2010 14:02:10 -0400 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] double document merge usi, Michael Kay | Thread | Re: [xsl] Re: An unintended incompa, Henry Zongaro |
Re: [xsl] double document merge usi, Michael Kay | Date | Re: [xsl] Re: An unintended incompa, Henry Zongaro |
Month |