xsl-list
[Top] [All Lists]

[xsl] [string to node]

2010-02-20 00:46:40
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>