This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] How to generate PHP code in a XSL customizationlayer


Frans Englich wrote:
<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
  
Ok, a docbook website related question then...
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,
--
Firma
Eng. Roberto Gianassi

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]