RE: Comment on XSLT 1.1

> 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 UTC