[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]