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


Hello Robert,


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>

without reading carefully your other posts I would suppose that this is an easy task. It's a condition isnt it?
You can do this with:
<xsl:choose>
<xsl:when test="foo">
...
</xsl:when>
<xsl:otherwise>
...
</xsl:otherwise>
</xsl:choose>
Kai



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