xsl-list
[Top] [All Lists]

RE: [xsl] Transformation with respect to level of depth

2007-05-02 10:15:31
* How can I limit the parsing to a certain depth, say level 1,2,3 (0 for
root)? I guess, I have to maintain a variable "level" which is passed into
every template?


You can do that, or you can establish the depth of a node $n using
count($n/ancestor::*).

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>