[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
TW wrote:
ESLT has object-type
http://www.exslt.org/exsl/functions/object-type/index.html
Firefox supports that since Firefox 3.0 I think, I am not sure about other browsers, as libxslt supports that function and I think Safari and Google chrome use libxslt chances are they support it.
I don't think MSXML used by IE supports it.
--
Re: [xsl] distinguish whether variable holds string or node set
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 |
TW wrote:
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.
ESLT has object-type
http://www.exslt.org/exsl/functions/object-type/index.html
Firefox supports that since Firefox 3.0 I think, I am not sure about other browsers, as libxslt supports that function and I think Safari and Google chrome use libxslt chances are they support it.
I don't think MSXML used by IE supports it.
--
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 |
Keywords