[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: NodeTest text()

Subject: RE: NodeTest text()
From: Strolia-Davis Christopher Contr MSG/MAT <Christopher.Strolia-Davis@xxxxxxxxxxxx>
Date: Tue, 3 Feb 2004 09:00:08 -0500
expan.s
> 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) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.