[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] How to generate PHP code in a XSL customizationlayer
Frans Englich wrote:
Ok, a docbook website related question then...<xsl:processing-instruction name="php"> include ('../php/filename.php'); </xsl:processing-instruction> See: http://www.w3.org/TR/xslt#section-Creating-Processing-Instructions http://www.xml.com/pub/a/2000/09/13/xslt/ Hm, you're off-topic since this is xslt related, and not tied to docbook. For further xslt questions, see the xsl-list: http://www.mulberrytech.com/xsl/xsl-list/ Cheers, Frans I created a website with docbook website in English and Italian. I use profiling to generate the HTML code starting from the same source. What I would like to do is to generate different snippets of code for the Italian and the English version of the site. When profile.lang is equal to "it" I would like to generate something equivalent to this: <xsl:processing-instruction name="php"> include ('../php/filename_it.php'); </xsl:processing-instruction>while profile.lang is equal to "en" this: <xsl:processing-instruction name="php"> include ('../php/filename_en.php'); </xsl:processing-instruction>Is this possible? Best regards, |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]