Date: 02/06/03
- Next message: CHAILLAN Nicolas: "[PHP-DOC] cvs: phpdoc /en make_chm_index_en.html"
- Previous message: Jirka Kosek: "Re: [PHP-DOC] Someone that can help w/ our XSLT stylesheets"
- In reply to: Jirka Kosek: "Re: [PHP-DOC] Someone that can help w/ our XSLT stylesheets"
- Next in thread: Jirka Kosek: "Re: [PHP-DOC] Someone that can help w/ our XSLT stylesheets"
- Reply: Jirka Kosek: "Re: [PHP-DOC] Someone that can help w/ our XSLT stylesheets"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>>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.
Well, logically yes, but it does not seem to work the right way... This
now does work the same way as without the limiting parameter, without no
change if I change the limiting parameter...
I have created this simple XML file to test the TOC generation... Well,
regardless of the parameter I set, I get a full toc everywhere...
Goba
- text/xml attachment: toctest.xml
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: CHAILLAN Nicolas: "[PHP-DOC] cvs: phpdoc /en make_chm_index_en.html"
- Previous message: Jirka Kosek: "Re: [PHP-DOC] Someone that can help w/ our XSLT stylesheets"
- In reply to: Jirka Kosek: "Re: [PHP-DOC] Someone that can help w/ our XSLT stylesheets"
- Next in thread: Jirka Kosek: "Re: [PHP-DOC] Someone that can help w/ our XSLT stylesheets"
- Reply: Jirka Kosek: "Re: [PHP-DOC] Someone that can help w/ our XSLT stylesheets"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

