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

Re: more xsl:number confusion!

Subject: Re: more xsl:number confusion!
From: Jack Matheson <jack@xxxxxxxxxxxxxx>
Date: Tue, 27 Sep 2005 16:20:03 -0500
jack matheson
Ahh!
I was under the (obviously incorrect) assumption that the 2.0 rules for numbering were simply a formalized
version of the 1.0 rules. I didn't know they were not the same.


Thanks for the quick reply!


You have



    xsl:number result: (<xsl:number level="multiple" count="a"
from="a"/>)



XSLT 1 says:

if the from attribute is specified, then the only ancestors that are
searched are those that are descendants of the nearest ancestor that
matches the from  pattern.

so the only things that are counted are a elements that are descendants
of the nearest a element, and (necessarily) ther are no such elements,
so you get nothing counted.


David

______________________________________________________________________ __
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
______________________________________________________________________ __

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.