On Sun, 2008-01-27 at 19:57 -0800, Steven Ericsson-Zenith wrote:
One assumes just as I do this right now, by the lexical order of
processing.
First, if you know what order you want the XML in for the
transformation, why don't you pre-assemble it as the main source prior
to the transform? Then you will get what you seem to want.
But, you are failing to grasp a few things about XSL. A transformation
is commonly driven by the XML source. The source might take the
transformation to load doc2.xml before doc1.xml, vice versa, load one
and not the other or load neither. In other words, in one transform
key('titles', 'h1')[1] could equal 'page 1' and in another it could
equal 'page 2' and in another it could be nothing.
If you mean lexical order of the XSL prior to the transform,
then how would something like this be loaded?
<xsl:variable
name="documentSet"
select="document($valueFromXmlSource)"/>
With respect,
Steven
On Jan 27, 2008, at 2:01 PM, Robert Koberg wrote:
...
doc1.xml
--------
<doc>
<title id="h1">page 1</title>
</doc>
doc2.xml
--------
<doc>
<title id="h1">page 2</title>
</doc>
There is the rub, as Shakespeare wrote in the Oxford English Book of
Quotations. If both have the same context, how do you know which to
use?
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--