Q: pattern selection for outside the context node

Subject: Q: pattern selection for outside the context node
From: Aaron Fischer <fischer17@xxxxxxxx>
Date: Thu, 08 Jul 1999 16:30:02 -0700
Hey everyone.  I have a data-driven XSL transformation script.  In other
words, I have a whole bunch of templates, one for every kind of element in
each level of the XML tree, with each template calling
<xsl:apply-templates/> on its children.

My problem is, within certain templates, I want to reference data in
certain elements located elsewhere in the XML tree.  However, when this
template is called upon, the context node is such that the element I want
to reference is NOT a descendant of the context node;  i.e. it's somewhere
else above, in the XML tree;  and at the moment it stands as inaccessible

Is there a pattern syntax for starting at the root or going above the
context node, up into the XML tree?  Every pattern selection I've tried is
always evaluated from the context node, which is the very thing I want to
bypass.  Is there a way to directly assign the value of the context node?

All help appreciated,

Aaron


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread