Re: more common HTML templates

From: Date: Tue, 22 Apr 2003 20:29:58 +0000
Subject: Re: more common HTML templates
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969352818@lists.php.net to get a copy of this message
Gabor Hojtsy wrote:
Hi! I have found out, that there is at least one template in html.xsl which should probably be in html-common.xsl: <!-- Add parenthesis FUNCTIONS, and if target exists link
     them to their refentry, otherweise make it bold  -->
<xsl:template match="function"> [...] </xsl:template> Seems appropriate for all HTML based versions... If you take care about the differences at the links (to handle it via params or additional templates), it shouldn't be a problem.
Considering your question below, I'm just wondering if it wouldn't be easier to put it into the "html[_]chunk[_common]", and just change the "'.html'" to "$html.ext" (It's up to you).
And there are two temlates which probably should be shared between phpweb and html (but not bightml), so they should not go into html-common, but some other included sheet: <!-- Make LEGALNOTICE an extra-file, omit extra-link on start-page (link
     directly from the original <COPYRIGHT>), and make nav-header/footer -->
<xsl:template match="copyright" mode="titlepage.mode"> [...] </xsl:template> <xsl:template match="legalnotice" mode="titlepage.mode"> [...] </xsl:template> Thomas, can you please confirm these? And do you have any idea for the common place for phpweb and html where we should place those two chunking templates? :) I wouldn't do it for just one template, but you can add serveral things more, like the chunk.quietly-param, etc.
Just "find" a common way to handle the navbar(s) for the legalnotice-page (which should be clear if we really work on a "Corporate Identity" ;), and do it. To the place: Maybe html[_]chunk[_common].xsl, so we'd have (unfortunately just) a start to get the html-styles together in a sorted file-list. Thomas

« previous php.doc (#969352818) next »