Re: Someone that can help w/ our XSLT stylesheets

From: Date: Thu, 06 Feb 2003 16:20:25 +0000
Subject: Re: Someone that can help w/ our XSLT stylesheets
References: 1 2 3 4 5 6 7 8  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969351642@lists.php.net to get a copy of this message
Gabor Hojtsy wrote: > The solution would be to count with relative depth, and not absolute > depth, as it is now, but I don't know how to solve that elegantly... Oh, sorry. I probably wasn't thinking when I wrote the code. Try change <xsl:variable name="absolute.depth" select="count(ancestor::*)"/> to <xsl:variable name="absolute.depth" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> I think, that now it should work. -- ----------------------------------------------------------------- Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz

« previous php.doc (#969351642) next »