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] 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


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