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

XPath & generate-id

Subject: XPath & generate-id
From: "Bhandari, Ashish" <Ashish.Bhandari@xxxxxx>
Date: Mon, 31 Mar 2003 11:48:11 -0500
xpath generate id
The named template below generates the following output - the href has no
value when it should have one.

<payerPartyReference href="">
</payerPartyReference>

edcSystem is the root Element and the XPATH does point to a valid node in
the XML tree. How do I specify an absolute path to generate-id function ?.
I think it interprets the path as a relative one.


Named Template:

<xsl:template name = "eqs-utility:generate-pay-receive-references">
		<xsl:param name = "payReceiveCode"/>
		<xsl:element name = "payerPartyReference">
			<xsl:attribute name = "href">
				<xsl:choose>
					<xsl:when test =
"$payReceiveCode=0">
						<xsl:value-of select =
"generate-id(/edcSystem/EDCContract/@a10)"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select =
"generate-id(/edcSystem/EDCContract/@a11)"/>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:attribute>
		</xsl:element>
</xsl:template>


Thanks,
Ashish.




 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.