OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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:
<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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]