Subject: Re: [xsl] calculate depth of an xml-tree From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx> Date: Tue, 22 Apr 2003 14:54:02 +0300 |
and now my 2nd (and hopefully last) question for today ...Forget about incrementing a variable, there is no such thing in XSLT.
I have to write an xsl file, which calculates the maximal depth of an input xml file.
<abc> <cde> <efg/> <asd/> </cde> <aaa/> </abc>
=> maxdepth = 3 ....
I think I have to use a "for each" with sorting and increment a variable, but I don't know how to do this (you see, I'm a big noob @ xml/xsl :( ... )
-- Oleg Tkachenko http://www.tkachenko.com/blog Multiconn Technologies, Israel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] calculate depth of an xml-tre, Florian Bauer | Thread | RE: [xsl] calculate depth of an xml, Michael Kay |
[xsl] calculate depth of an xml-tre, Florian Bauer | Date | RE: [xsl] xsl-fo header problems, David . Pawson |
Month |