Re: LiveDocs : TOC
| From: | Gabor Hojtsy | Date: | Tue, 03 Jun 2003 12:46:48 +0000 |
| Subject: | Re: LiveDocs : TOC | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969354225@lists.php.net to get a copy of this message | ||
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 :): [derick@kossu 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