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

Re: keys and idrefs - XSLT2 request?

Subject: Re: keys and idrefs - XSLT2 request?
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Tue, 9 Oct 2001 17:57:30 +0100
xsl key tennison tokenize
Hi Wendell,

> Rather, if the saxon:tokenize approach works, why not do it that
> way? The introduction of a node-set() function makes it much more
> conceivable in XSLT 2.0 to introduce arbitrary node sets on demand.
> So XSLT 2.0 needs an equivalent to saxon:tokenize.

I agree. Speculating a bit - given all the talk of 'sequences' in the
XPath/XQuery documents, perhaps tokenising on whitespace will be
fairly automatic, especially if you have access to the DTD or XML
Schema and can work out that a particular value is a IDREFS, ENTITIES
or other 'list' type.

In other words, an XSLT 2.0 processor might look at the 'controls'
attribute, go "aha, an IDREFS attribute" and treat it as a sequence of
IDREF values. *If* that were the case, then:

<xsl:key name="control" match="process" use="@controls" />

would automatically work in the same way as when using tokenize (with
only one argument). However, of course this would be highly
backwards-incompatible, so perhaps we'll see something like:

<xsl:key name="control" match="process"
         use="cast as IDREFS(@controls)" />

or:

<xsl:key name="control" match="process"
         use="xf:IDREFS(@controls)" />

Which is all to say that I don't think we'll have to worry about
tokenising on whitespace in XPath 2.0. *But* we might want to ask for
tokenisation on other characters (e.g. commas) - I can't see a
xf:tokenize() function to create sequences in the F&O document...
         
Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.