Re: struture of the docs

From: Date: Sun, 19 May 2002 11:51:25 +0000
Subject: Re: struture of the docs
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-536@lists.php.net to get a copy of this message
Hello from Thailand... I am here I just decided to take off for a few months, I have a few hours now so I thought I would catch up on the mailling lists to see if anything needed my urgent attention, the reason Andrei and I decided not to have all the methods listed was to keep the manual more concise as otherwise some of the lower classes in the heirerarchy would have several hundred, some totally useless methods, now when doing this (if you do and others feel its necessary, or the general concensus on the php-gtk-general list is this would be helpful) you need to make sure you take into account any overrides that are in place within the heirarchy so you must start at the base class and work down to your sepecified class now this isnt easy as XML has no varaibles as such. In psuedo XSL code: <xsl:template name="do.methods"> <xsl:param name="class"/> <xsl:variable name="parent.class"> <xsl:call-template name="get.parent.class"> <xsl:with-param name="class" value='class'/> </xsl:call-template> </xsl:varaible> <!-- Build & Return node of all parent classes function nodes (not that easy and I cant remember how to do it here without any reference --> </xsl:template> Call this template assigning the outcome to a varaible then unique it, you then need to either run back through the tree looking up where the first occurance of this function is closest to the current node. The other option, probably the better one, is to do the following: Create and XSL Stylesheet that outputs another XSL stylesheet which has a function that can be called with the current classes name which outputs all the functions that class has, it will still require the above and an update every so often but it shouldnt slow the process of building the manual too much, to see roughly how this is done see gen_name_to_id.xsl in the root dir of php-gtk-doc. TBH Im guessing slightly at how I might attack the problem and the actual solution might be a long way from the possibilities Ive outlined and there might be a quicker way... If you get stuck feel free to send me the odd email about it but remember Im on holiday and will be back with a new vengence in July so Im gone for a little while longer but not that much longer.. I think another 6 weeks or so... also remember I havnt touched any code for about 2 months now so I might be slightly out of practice and have forgotten somthing important :) Anyway back to the sun (hopefully soon.. its raining right now) and the holiday! (Please CC me on any relevant replies as I AM NOT subscribed to any lists at the moment and jmoore@php.net will probably bounce for you as I havnt checked it in about 7 weeks) cheers, James _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com

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