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

RE: position

Subject: RE: position
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Sat, 14 Feb 2004 22:49:50 -0000
position errata xslt
> This is interesting ...
> 
> The value is zero because at the point in time, according to XSLT 1.0 
> Section 7.7 the <note> element isn't being processed and there are no 
> preceding notes, so there is nothing to count.
> 
> But section 7.7.1 states that integers being processed are 
> greater than zero.
> 
> So, I'm guessing it is incumbent on the stylesheet writer 
> never to be in 
> the position of getting a zero value when using <xsl:number>.  But it 
> doesn't say that explicitly in the Recommendation.
> 
> Can anyone on the committee comment on this?  Are users of 
> <xsl:number> 
> required to use it only in situations where a positive number 
> is being returned?

Erratum E23 fixes this contradiction in the spec, specifying that an
empty list is returned in this situation, not a list of length one
containing the number zero.

http://www.w3.org/1999/11/REC-xslt-19991116-errata/

Michael Kay


 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.