Finding depth in output tree?
Posted: Thu Apr 12, 2012 8:10 pm
Hi all,
count(ancestor-or-self::*) yields your current depth in the input tree -- is there anything similar that will tell you at what level in the output tree the current template is generating tags? Or would this require some sort of precognition in the XSLT processor?
(I'm asking on behalf of an imported template, which doesn't necessarily know much about the transform that imported it.)
Thanks, --alex.
count(ancestor-or-self::*) yields your current depth in the input tree -- is there anything similar that will tell you at what level in the output tree the current template is generating tags? Or would this require some sort of precognition in the XSLT processor?
(I'm asking on behalf of an imported template, which doesn't necessarily know much about the transform that imported it.)
Thanks, --alex.