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

Re: Future XSLT extensions. document(). Summary.

Subject: Re: Future XSLT extensions. document(). Summary.
From: Paul Tchistopolskii <paul@xxxxxxx>
Date: Wed, 22 Mar 2000 13:01:40 -0800
aggregates xsl
----- Original Message -----
From: David Carlisle <davidc@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Wednesday, March 22, 2000 11:13 AM
Subject: Re: Future XSLT extensions. document(). Summary.


>
> > But document() is much more than just document(URI) ).
>
> but the other forms just change the base URL for resolving relative URIs
> so no real difference in principle is there?

I'm sorry, but the answer is : "No".

<WD>

Function: node-set document(object, node-set?);

...

When the document function has exactly one argument and the argument is a node-set, then
the result is the union, for each node in the argument node-set, of the result of calling
the document function with the first argument being the string-value of the node, and the
second argument being a node-set with the node as its only member
...

The document function gives rise to the possibility that a node-set may contain nodes from
more than one document

</WD>

Not yet talking about the abusing document() with proprieatry vendor-depended
extenstions,  the current semantics  of the document() is an attempt are to achive :

<xsl:variable name="doc1">
<aggregate>
<xsl:value-of select="document('doc1')"/>
<xsl:value-of select="document('doc2')"/>
</aggregate>
</xsl:variable>

More complex aggregations require 'for-each' e t.c. -
currently all that stuff resides inside the document hack,
only because:

r-t-f is not node-set

Rgds.Paul.



 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.