Re: name_to_id is autogenerated?

From: Date: Wed, 12 Apr 2006 13:45:12 +0000
Subject: Re: name_to_id is autogenerated?
References: 1 2 3  Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-2381@lists.php.net to get a copy of this message
You're telling me you use a hard-coded copy of name_to_id.xsl, right? OK, no big deal, I'll put it back in CVS... BTW the demo manual works fine here, so I don't know why it isn't working for you. And yes, I already said your system seems faster. It's also less flexible - there are pros and cons in both approaches. Thanks for putting the glossary support in btw! - Steph
Steph,
Can you repeat that in English? I've no idea what you're talking about...
The stylesheet file "stylesheets/html/name_to_id.xsl" is auto-generated by ./configure. It basically contains a huge switch(){} block in every function, be it get_func_id_from_name or get_prop_id_from_name (of course, not a php switch() statement but xslt xsl:when blocks). Last year around that time, I replaced this code with my own that calculated the ids in a generic way, so that the file didn't needed to be generated each time by configure. Now, as the generation is back, the name_to_id.xsl does work for the main manual only, not for the demo manual (as those ids aren't indexed). Further, it is slower because the xslt processor needs to go through a long, long list of xsl:when conditions until it finds the right id, instead of doing a constant 20 lines of code for each id. I wanted to know why you changed it back to the generated-by-configure-version instead of keeping my code? __________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com


« previous php.gtk.doc (#2381) next »