Subject: Re: [xsl] distinguish whether variable holds string or node set From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Sun, 13 Jun 2010 11:51:51 +0200 |
Is there a way to determine whether a variable holds a string or a node set? Something like:
<xsl:template name="my-template"> <xsl:param name="arg"/> <xsl:choose> <xsl:when test="pseudo test: type($arg)='node-set'">Do something</xsl:when> <xsl:otherwise>Do something else</xsl:otherwise> </xsl:choose> </xsl:template>
I'm looking for an XSLT 1.0 solution as I want it to work in browsers.
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] distinguish whether varia, TW | Thread | Re: [xsl] distinguish whether varia, Michael Kay |
Re: [xsl] distinguish whether varia, David Carlisle | Date | Re: [xsl] Selecting 400 characters , Wolfgang Laun |
Month |