<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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--