Take two stylesheets, A and B. B imports A. A contains <xsl> expressions that include 'document()' calls, i.e.
<xsl:value-of select="document('foo.xml')"/>and
<xsl:apply-templates select="document('foo.xml')"/>In the first case, Xalan looks for 'foo.xml' relative to stylesheet A. In the second case (the 'apply-templates' case), Xalan looks for 'foo.xml' relative to stylesheet B.
Is this the intended behavior? It seems counter-intuitive: can I count on it working in future?
Related to this, a more general question: is the second example the approved way to haul a chunk of XML contained in an external file into the document currently being processed, and have it treated by the current stylesheet? Is there a better way to do this in (a) the stylesheet or (b) from the source XML document? I guess what I really want is the equivalent of #include ...
That's a lot of questions: I'd be grateful for answers to any of them. Answers of the form 'read the (friendly) manual' are also acceptable.
Thanks,
Angus -- [EMAIL PROTECTED] http://pobox.com/~angus
