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

Re: xslt2 general steps.

Subject: Re: xslt2 general steps.
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Fri, 12 Nov 2004 10:44:58 +0100
Re:  xslt2 general steps.
In other words, you can do things like:
keyword/lower-case(.)
but you can't do:
keyword/lower-case(.)/substring-before(., '-')


Jeni, you say general steps must return nodes except for the last step?
This latter 'last step' returns an atomic value as I see it (a string).

What is wrong with it?

She means that lower-case(.) returns a string, not a node-set. It is not possible to continue the path with / if the previous steps didn't result in a node-set.


So this can be done:

keyword/key('nodes-by-keyword', .)/substring-before(., '-')

..as key() returns a node-set.

But this cannot be done:

keyword/lower-case(.)/substring-before(., '-')

..as lower-case() returns a string.


(Unless you can make lower-case return Text Nodes instead of Strings, I guess..)



Grtz


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.