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

RE: Equivalent of a Global Counter

Subject: RE: Equivalent of a Global Counter
From: Matthew Bentley <matthew.bentley@xxxxxxxxxxxxxx>
Date: Wed, 15 Nov 2000 12:58:15 +1100
xslt global counter
>First save the output into a variable in which you have the desired
>output except for id="?" then use a node-set extension function 
>to apply an identity transform together with the extra rule

><xsl:template match="*[@id='?@']">
>  <xsl:copy>
>  <xsl:copy-of select="@*"/>
>  <xsl:attribute name="id">
>   ....<xsl:number level="any" count="*[@id="'?']"/>
>  </xsl:attribute>
>  <xsl:apply-templates/>
> </xsl:template>

Thanks for your help, however I think its going to be easier to do it in the
post-xslt processing - Cheers,
Matt
=====================================================================
WARNING -This e-mail, including any attachments, is for the 
personal use of the recipient(s) only.
Republication and re-dissemination, including posting to news 
groups or web pages, is strictly prohibited without the express
prior consent of
Thomson Legal & Regulatory Group Asia Pacific Ltd 
ACN 058 914 668
=====================================================================


 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.