[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: Alexey Gokhberg <alexei@xxxxxxxxxx>
Date: Wed, 15 Nov 2000 01:24:33 +0100
xslt global counter
Matthew Bentley wrote:
> 
> >It can't be done. But if you tell us what your problem is, we'll tell you
> >why you don't need to solve it this way.
> 
> Okay, fair enough - my task is this:
> I am setting ID attributes on xml documents to a particular id scheme
> specific to my company. Part of this id scheme is Unique numbering for those
> elements which would otherwise not have unique ids (based on their content).
> The id scheme cannot be changed.
> 
> ......
>
> I can quite easily do this as a post-processing task by inserting a
> character sequence (e.g. $!$) at the point where the Unique number occurs
> and replacing this with an appropriate number in omnimark or perl, but it'd
> be nice if I could do it within xslt.

Why don't you use any XSLT engine that supports interface to the
scripting languages?

Of course, this solution won't be "100% pure XSLT", but is this really
important?

Regards,

Alexey


 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.