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

RE: difficulties with the position() function and xpa

Subject: RE: difficulties with the position() function and xpath statements
From: "Hunsberger, Peter" <Peter.Hunsberger@xxxxxxxxxx>
Date: Fri, 2 Nov 2001 13:26:09 -0600
RE:  difficulties with the position() function  and xpa
> However, I get two
> different numbers assigned (and thus my html links don't work).  Any ideas
> on how to get around this? I've included a simple example below.

Stash the number in a variable and pass it as a parameter.  I do this with
generated id's which might give you even better semantics, unless you need
the file names to be the same from run to run?  Eg:

    <xsl:variable name="cur-id" select="generate-id()"/>
       <xsl:apply-templates select="gunk">
            <xsl:with-param name="cur-id" select="$cur-id"/>

passing the cur-id parameter around as needed...



 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.