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

Re: Selecting the first item from a tokenized string

Subject: Re: Selecting the first item from a tokenized string
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 13 Jan 2006 14:38:55 GMT
xpath subsequence
>  Please blame my poor english.
your english is a lot better than my french...

> Right?
Yes. The expressions are normally equivalent because the "N" is normally a
constant or a variable or some other expression that doesn't evaluate to
different values in different places. In the case that people do go
(...)[zzzz]
and zzzz is actually a numeric-valued expression that has a different
value for each item in the sequence, then it's almost always not what
the user intended! For example my SEQ[number(N)] example. If anyone
wrote that (except as an answer on xslt-list) they almost certainly
meant to write SEQ[number(../N)] (ie they meant it to mean the same as 
the subsequence example, or equivalently, and more clearly write
<xsl:variable name="n" select="number(N)"/>... select="SEQ[$n]"...
as selecting all SEQ elements who's position in the initially selected
sequence is numerically equal the string value of their N child, is just
too weird.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.