At 2012-08-31 19:32 +0000, Costello, Roger L. wrote:
How do I search ancestors in the output tree? (As opposed to
searching ancestors in the input tree).
As Chris said, you cannot do this.
One reason is that the processor is allowed not to keep the output
tree in memory. XSLT is designed so that the processor can instantly
serialize an element's start tag with all of its attribute
specifications once the element's content begins being output.
Thus, the output tree wouldn't be available to you to query. There
is no "going back" in order to change something or query something in
the result tree.
I hope this helps.
. . . . . . . . . Ken
--
Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--~------------------------------------------------------------------
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>
--~--