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

RE: NodeTest text()

Subject: RE: NodeTest text()
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 3 Feb 2004 14:07:03 -0000
xsl nodetest
text() returns all the text nodes on the relevant axis, but if you
select a set of nodes in the <xsl:value-of> instruction, it only outputs
the first one. I suspect that is what you have done. Try <xsl:copy-of>.

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> BODARD Gabriel
> Sent: 03 February 2004 12:07
> To: XSL List
> Subject:  NodeTest text()
> 
> 
> 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'. (This is within the definition of a key and 
> also includes normalise-space and translate, to complicate 
> matters, but it should still all work.) The trouble is that 
> the output I get from this function is 'Will', i.e. only the 
> first text node, rather than all. Am I misunderstanding the 
> definition, misusing the nodetest, or is this a problem with Saxon?
> 
> Many thanks for any advice.
> 
> -- 
> =======================================
> Gabriel BODARD
> Centre for Computing in the Humanities
> King's College London
> Strand
> London WC2R 2LS
> 
> Email: gabriel.bodard@xxxxxxxxx
> Tel: +44 (0)20 78 48 16 62
> Fax: +44 (0)20 78 48 29 80 =======================================
> 
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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


Current Thread

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.