Re: [xslt] bug in xsl:processing-instruction?



Morus Walter wrote:

> 
> The missing ? at the end of the PI is due to the xslt spec:
> http://www.w3.org/TR/xslt#section-HTML-Output-Method:
> ...
> The html output method should terminate processing instructions 
> with > rather than ?>
> ...

I will improve the accuracy of my question:

My XSLT script contains:
----------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
[...]
<xsl:stylesheet
   version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="html" indent="yes"/>
[...]

         <xsl:processing-instruction name="php">
           echo $date;
         </xsl:processing-instruction>

[...]
</xsl:stylesheet>
----------------------------------------------------------------

The output is:
----------------------------------------------------------------
[...]
         <?php
           echo $date;
         >
[...]
----------------------------------------------------------------

Before Daniel beats me, the output of the command

$ xsltproc --version

is:

Using libxml 20423, libxslt 10019 and libexslt 710
xsltproc was compiled against libxml 20422, libxslt 10019 and libexslt 710
libxslt 10019 was compiled against libxml 20422
libexslt 710 was compiled against libxml 20422

Regards.

-- 
Pierre François (http://www.romanliturgy.org)
Roemer Visscherstraat 46
NL-1054 EZ Amsterdam (Netherlands)
+ 31 20 616 58 46




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]