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

RE: Position() on template matches

Subject: RE: Position() on template matches
From: "Kevin L. Cobb" <kevin.cobb@xxxxxxxxxxxx>
Date: Wed, 26 Oct 2005 07:45:59 -0400
RE:  Position() on template matches
Thanks a lot. My comprehension of the "level" attribute was definitely
lacking. I went back and read MK's explanation of this attribute and it
makes since now. Thanks for the boost.

-Kevin

-----Original Message-----
From: Geert Josten [mailto:Geert.Josten@xxxxxxxxxxx]
Sent: Wednesday, October 26, 2005 3:38 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Position() on template matches

>    <xsl:template match="output/tester">
>       <xsl:variable name="pos"><xsl:number/></xsl:variable>
>       <xsl:element name="myOut"><xsl:value-of
> select="$pos"/></xsl:element>
>    </xsl:template>

Use <xsl:number level="any" /> instead..

By the way, you can put it in the element directly, you do not need to
put it in a variable first..

Cheers,
Geert

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.