[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] NodeTest text()


Subject: RE: [xsl] NodeTest text()
From: Strolia-Davis Christopher Contr MSG/MAT <Christopher.Strolia-Davis@xxxxxxxxxxxx>
Date: Tue, 3 Feb 2004 09:00:08 -0500

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