W3C home > Mailing lists > Public > xsl-editors@w3.org > July to September 2001

RE: Comment on XSLT 1.1

From: Michael Kay <mhkay@iclway.co.uk>
Date: Wed, 4 Jul 2001 09:00:46 +0100
To: <Thomas.Masing@bgs-ag.de>, <xsl-editors@w3.org>
Message-ID: <000101c1045f$6f264db0$56393c3e@PCUKMKA>
> Dear Sirs,
> in my opinion it would be nice to have a key function for
> mutiple source
> documents.
>
> Best regards
>
> Thomas Mäsing
>

Thomas, if you read the requirements for XPath 2.0 at
http://www.w3.org/TR/xpath20req, you will see in section 2.1:

<quote>
Allowing node-set functions to appear in a location step would allow
expressions like:
document("otherdoc.xml")/id("foo")/a/b
and
document("otherdoc.xml")/key("x","foo")/a/b
</quote>

It would also allow
$docs/key("x","foo")/a/b

where $docs is a set of root-nodes from different documents; this would have
the effect you require.

Regards,
Mike Kay
Received on Wednesday, 4 July 2001 03:57:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:52 GMT