[xsl] [string to node]

Subject: [xsl] [string to node]
From: Aditya Sakhuja <aditya.sakhuja@xxxxxxxxx>
Date: Fri, 19 Feb 2010 22:46:18 -0800

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: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:value-of select="//ads"/>

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