Re: [docbook-apps] 5 Questions: from PHP tags to XIncludes

From
Andrei Boyanov <>
Date
2004-07-24T11:19:53+00:00
ID
Thread
Re: [docbook-apps] 5 Questions: from PHP tags to XIncludes
Hi,


Frans Englich wrote:

> 
> 1. PHP Instructions
> 
> I try to generate PHP tags with my driver(as Mauritz advised) but I can't get 
> it to work:
>     <xsl:template match="processing-instruction('php')">
>         <xsl:processing-instruction name="php">
>             <xsl:value-of select="."/>
>         </xsl:processing-instruction>
>     </xsl:template>
> 
>     <?php
>         $site_root = "../../";
>         include "usability.inc";
>         include "header.inc";
>         ?>
> 
> As per:
> http://www.dpawson.co.uk/docbook/styling/custom.html#d1075e1385
> 
> The resulting html file does not have any php tags -- what's wrong?
> 

Isn't the output method in your xslt stylesheet set to 'text'?

Try to add this in the beginning of the stylesheet:

<xsl:output method="html" indent="yes"/>

-- 
Andrei Boyanov
CEO of Active Solutions Ltd.
http://activesolutions.bg; http://andrei.activesolutions.bg