Subject: Re: [xsl] How to use generate-id() inside an xsl:function without a node available? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 28 Feb 2007 00:04:04 +0100 |
But please get out of the habit of using xsl:value-of
when you mean xsl:sequence, and please get into the habit of declaring the
types of your functions! This should be
The cheapest solution is probably a text or comment node rather than an element, something like:
<xsl:function name="my:getNode"><xsl:comment/></xsl:function>
<xsl:function name="my:getId"> <xsl:value-of select="generate-id(my:getNode())" /> </xsl:function>
Remember that an LRE like <node/> might be creating a lot of namespaces...
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to use generate-id() , Michael Kay | Thread | [xsl] xsl multicolumn table or list, Josh Wasserman |
Re: [xsl] How to use generate-id() , Abel Braaksma | Date | Re: [xsl] How to use generate-id() , Dimitre Novatchev |
Month |