Q: pattern selection for outside the context node
Aaron Fischer
fischer17 at llnl.gov
Fri Jul 9 01:30:23 BST 1999
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
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev
mailing list