xsl-list
[Top] [All Lists]

RE: NodeTest text()

2004-02-03 07:00:08
Dear all,

I am trying to use the text() nodetest to extract the text 
only value of
a string. Kay (2nd ed.) defines the function of text() as "selects all
text nodes on the relevant axis". So, I would expect the 
text() content
of the abbr element in:

<abbr>Will<expan>elmus</expan>s</abbr>

to be 'Wills'

It would be helpful to see what the XSL code is that you used for this.

If you just used a value of, it would only get the first node.

There are 2 text nodes in the xml string you gave us, so chances are you 
would need to use a for-each or apply-templates or something.  I don't 
know if we will be able to tell you unless we can see what you are doing.

Chris Strolia-Davis
Database Specialist
Contractor - CDO Technologies Inc.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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