> 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
| Current Thread |
- NodeTest text()
- BODARD Gabriel - Tue, 3 Feb 2004 07:08:46 -0500 (EST)
- <Possible follow-ups>
- Strolia-Davis Christopher Contr MSG/MAT - Tue, 3 Feb 2004 09:00:55 -0500 (EST) <=
|
|