Subject: Re: [xsl] [string to node] From: ac <ac@xxxxxxxxxxxxx> Date: Sat, 20 Feb 2010 02:33:50 -0500 |
Cheers, ac
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] [string to node], Mukul Gandhi | Thread | Re: [xsl] [string to node], Aditya Sakhuja |
Re: [xsl] [string to node], Mukul Gandhi | Date | [xsl] XSLT & XML DTD compliance, Justin Johansson |
Month |