Subject: Re: [xsl] NodeTest text()|
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 03 Feb 2004 08:37:29 -0500
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:
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?
......................... Ken 8
-- Public courses: sign up for one or both soon to reserve your seat! Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO Washington, DC: 2004-03-15 San Francisco, CA: 2004-03-22 Hong Kong, China: 2004-05-17 Bremen, Germany: 2004-05-24 World-wide on-site corporate, government & user group XML training
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
|<- Previous||Index||Next ->|
|[xsl] NodeTest text(), BODARD Gabriel||Thread||Re: [xsl] NodeTest text(), Jeff Kenton|
|Re: [xsl] XSLT vs Perl, Robert Koberg||Date||Re: [xsl] Problem turning a xml str, Jarkko . Moilanen|