[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: Calling subdocuments with processing directives
Subject: Re: Calling subdocuments with processing directives|
From: Steven Ericsson-Zenith <steven@xxxxxxxxxxxxx>
Date: Fri, 26 Oct 2007 11:33:41 -0700
It is because there is no defined order that I find it counter
intuitive to have to make what is essentially and order
specification. From a functional point of view a key really should
Dr. Steven Ericsson-Zenith
Institute for Advanced Science & Engineering
On Oct 26, 2007, at 10:41 AM, Michael Kay wrote:
The "default" you refer to is on retrieval. It is not clear
to me why that context is relevant in the case of keys. Why
do you have to specify the source of the value? That seems
very odd to me. The name of the key includes the source path?
The key definition includes a pattern - a condition that nodes must
in order to be eligible. You seem to be suggesting that you would
search in some sense to be global - to search all known documents.
seems to be something of a closed world assumption there. All
previously loaded using the document() function? But what does
mean in XSLT - there's no defined order of execution.
<xsl:variable name="doc1" select="document('foo.xml')"/>
<xsl:variable name="bbb" select="key('k', 93.7)"/>
Should $doc1 be searched? Why? It typically isn't loaded until it's
and if no-one ever refers to $doc1 then it never will be loaded.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format