xsl-list
[Top] [All Lists]

Re: [xsl] [string to node]

2010-02-21 17:06:55
Hi,

Thanks for testing it out.

The inherent problem is that I get a string, and not a node-set,
needed by count(). David, ultimately the value in the variable
obtained through value-of is not a node or a node set. Is there a way
you think, I can get the count() fetch me the number of 'dd' elements
using xalan-c processor ?


On Sun, Feb 21, 2010 at 3:00 PM, David Carlisle 
<davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:
On 21/02/2010 22:52, ac wrote:

Hi,

$a is a string as it is the result of <xsl:value-of select="//dd"/>


No. Firstly value-of doesn't return a string but a text node, and secondly
$a isn't the result of the value-of it is constructed by an xsl:variable
with content rather than a select attribute which means that it's a result
tree fragment corresponding to a root node with a single child the text node
generated by value-of.

David

--~------------------------------------------------------------------
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>
--~--





-- 

-Å∂i†¥å

--~------------------------------------------------------------------
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>