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

Re: How to use generate-id() inside an xsl:function w

Subject: Re: How to use generate-id() inside an xsl:function without a node available?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 27 Feb 2007 21:39:25 GMT
Re:  How to use generate-id() inside an xsl:function  w
<xsl:function name="pref:myId" as="xs:string">
 <xsl:variable name="myNode" as="element()">
    <someNode/>
 </xsl:variable>

 <xsl:variable name="vdynNode" as="element()">
   <xsl:copy-of select="$myNode"/>
 </xsl:variable>

  <xsl:sequence select="generate-id($vdynNode)"/>

<xsl:function


surely you can lose the first variable and write that as

<xsl:function name="pref:myId" as="xs:string">
 <xsl:variable name="myNode" as="element()">
    <someNode/>
 </xsl:variable>

  <xsl:sequence select="generate-id($myNode)"/>

<xsl:function

or in xquery,no variables at all, just generate-id(<somenode/>)

David

Current Thread

Back To School Sale!

Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop.

Offer ends August 31, 2008.

Coupon Code
TRTY-C4JV-OFF

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-2007 All Rights Reserved.