Q: pattern selection for outside the context node
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
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