[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|