Hey,

I've been toying with XSLT tonight, which seems the fastest way to generate a TOC for the LiveDocs: it takes only 11 seconds on my box.

Attached is the stylesheet and here is how you use it (xmllint is introduced to make it readable :):

[EMAIL PROTECTED] phpdoc-all]$ time xsltproc xsl/toc.xsl manual.xml > /tmp/toc.tmp.xml; xmllint --format /tmp/toc.tmp.xml > /tmp/toc.xml

real    0m11.196s
user    0m10.030s
sys     0m1.150s

once we have the toc we can parse it into sqllite.. I'm going to use the Nested Set/Visitation model* for that to maximize performance in finding paths and siblings.

Would you have any problem with adding this XSLT to phpdoc and integrating it to the build system?


Goba


-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to