#35589 [Opn->Csd]: libxslt minimum version requirement on XSL documentation page
| From: | bjori@php.net | Date: | Fri, 08 Sep 2006 16:41:56 +0000 |
| Subject: | #35589 [Opn->Csd]: libxslt minimum version requirement on XSL documentation page | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969373980@lists.php.net to get a copy of this message | ||
ID: 35589
Updated by: bjori@php.net
Reported By: info at intelligentstreaming dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Linux
PHP Version: Irrelevant
-Assigned To:
+Assigned To: bjori
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2005-12-07 19:12:44] info at intelligentstreaming dot com
Description:
------------
http://www.php.net/xsl states that the minimum version of
libxslt
required for the XSL extension is 1.0.18. When using libxslt 1.0.23 and
"php:function" in an XPath expression in an XSL document to call a
function which returns a nodeset (DOMDocument), any attempt to use
<xsl:apply-templates select="$returnednodeset" /> to parse the returned
nodeset causes the XSL transformation to fail
(XSLTProcessor::transformToXML() returns false). Other forms of use of
the returned nodeset such as setting an <xsl:variable>, passing it to
another template with <xsl:call-template> or outputting some of its
contents with <xsl:value-of> work correctly.
Upgrading to libxslt 1.0.33 solves the problem and
<xsl:apply-templates> works as expected with the returned nodeset.
Suggest noting in the documentation that libxslt < 1.0.33 does not
provide complete functionality.
Reproduce code:
---------------
XML: http://www.intelligentstreaming.com/EscapedXML.xml
XSL: http://www.intelligentstreaming.com/EscapedXML.xsl
PHP function 'xmldecode':
function xmldecode($string)
{
return DOMDocument::loadXML($string);
}
Expected result:
----------------
<?xml version="1.0"?>
<html><head><title>Embedded XML test</title></head><body>
NORMAL TEXT: This is some normal text<br/>
TITLE: News article title<br/>
TOPIC: The topic<br/>
ARTICLE: This is the text of the news article.<br/>
NORMAL TEXT: This is some more normal text<br/>
</body></html>
Actual result:
--------------
libxslt-1.0.23:
No output.
libxslt-1.0.33:
Expected result as shown above.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35589&edit=1