|
[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
<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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






