|
[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
|
Back To School Sale!Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop. 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
|






