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

Re: Simple list numbering problem with rule based sty

Subject: Re: Simple list numbering problem with rule based stylesheet approach
From: Jacobus Reyneke <jacobusreyneke@xxxxxxxxx>
Date: Thu, 22 Apr 2010 20:06:03 +0200
Re:  Simple list numbering problem with rule based  sty
Thanks for the help, Michael,

I just wanted to make sure that I'm not abusing or "hacking" the system.

I'm happy now ;-) (also re-read chapter 2 of your book just to
understand the basics better.)

Have a good evening,
Jacobus

>
> Yes.
>
> There are two ways of calculating the position: <xsl:number/> gives you the
> number by counting siblings in the source tree, position() gets it by
> counting nodes in the sequence selected by the calling xsl:apply-templates.
> In your case, both give the same answer. The position() call is probably
> more efficient, but it does create a hidden dependency between the two
> template rules, which you may not like.
>
> Regards,
>
> Michael Kay
> http://www.saxonica.com/
> http://twitter.com/michaelhkay

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.