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 customization layer


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


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