This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] How to generate PHP code in a XSL customization layer
- From: Frans Englich <frans dot englich at telia dot com>
- To: Roberto Gianassi <posta at roberto dot gianassi dot name>,Docbook Mailing List <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 8 Mar 2005 11:25:06 +0000
- Subject: Re: [docbook-apps] How to generate PHP code in a XSL customization layer
- References: <422D877F.8090201@roberto.gianassi.name>
On Tuesday 08 March 2005 11:07, Roberto Gianassi wrote:
> Hi,
>
> I would like to know if it's possible to generate a snippet of PHP code
> in a XSL customization layer.
> What I have in mind is something similar to:
>
> <xsl:template name="home.navhead">
> <?php include ('../php/filename.php'); ??>
> </xsl:template>
Try the processing-instruction element:
<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