Subject: [xsl] [string to node] From: Aditya Sakhuja <aditya.sakhuja@xxxxxxxxx> Date: Fri, 19 Feb 2010 22:46:18 -0800 |
Hello, I am looking to convert a string to a single node type. Using Xalan C 1.10 processor. for eg: <xsl:variable name="test-phone"> <xsl:choose> <xsl:when test="($tempPhone) and ($tempPhone!= 'Visit Web Site') and ($tempPhone!= 'All') and ($tempPhone!= 'A') and ($tempPhone!= 'B')"> <xsl:value-of select="normalize-space($tempPhone)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="//ads"/> </xsl:otherwise> </xsl:choose> </xsl:variable> What I have in test-phone is a string. on which I cannot use count($test-phone). What is the best way to have the count() ? I am trying to get a node from the string, that would work. Thanks in advance, Aditya Sakhuja
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Required item type of fir, Spencer Tickner | Thread | Re: [xsl] [string to node], Mukul Gandhi |
Re: [xsl] Required item type of fir, Spencer Tickner | Date | Re: [xsl] [string to node], Mukul Gandhi |
Month |