[xslt] <xsl:processing-instruction>
- From: Bernhard Zwischenbrugger <bz datenkueche com>
- To: xslt gnome org
- Subject: [xslt] <xsl:processing-instruction>
- Date: Sun, 8 Jul 2001 17:30:42 +0200
Hi
First of all:
Great to see the really fast development of
libxslt. Excelent work !!!
I think I have found a bug in libxslt:
XSLT File:
=========
<?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="no" encoding="ISO-8859-1"
omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:processing-instruction name="php">
<xsl:text>echo "</xsl:text>
<xsl:value-of select="nur/text"/>
<xsl:text>";</xsl:text>
</xsl:processing-instruction>
</xsl:template>
</xsl:stylesheet>
XML File:
========
<?xml version="1.0" encoding="ascii"?>
<nur>
<text>It's a test</text>
</nur>
xsltproc Result:
=============
xsltproc test.xsl test.xml
-----------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<?php echo "It's a test";>
Result with sablotron:
==================
sabcmd test.xsl test.xml
<?php echo "It's a test";?>
The Bug:
========
The Question Mark is missing.
xsltproc prints ">" instead of "?>"-
Version:
=======
# xsltproc -V
Using libxml 20314 and libxslt 1400
xsltproc was compiled against libxml 20314 and libxslt 1400
libxslt 1400 was compiled against libxml 20314
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]