Bug 89279
| Summary: | xslt forwards compatible mode does not work | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Julian Reschke <julian.reschke> |
| Component: | XML | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | ap |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://greenbytes.de/tech/tc/xslt/#ft-xsl-function | ||
Julian Reschke
The stylesheet below:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:test="#tes
t"
xmlns:tc="mailto:julian.reschke@greenbytes.de?subject=xslt"
version="2.0">
<xsl:output method="html" encoding="iso-8859-1" version="4.0"
doctype-public="-//W3C//DTD HTML 4.01//EN"
indent="no"/>
<xsl:template match="/">
<html>
<head>
<title>xsl:function</title>
</head>
<body>
<xsl:choose>
<xsl:when test="function-available('test:test')">
<p>
Result: <xsl:value-of select="test:test()"/>
</p>
</xsl:when>
<xsl:otherwise>
<p>
<tt>xsl:function</tt> not supported, but properly handled
(ignored)</p>
</xsl:otherwise>
</xsl:choose>
</body>
</html>
</xsl:template>
<xsl:function name="test:test">YES</xsl:function>
</xsl:transform>
should either result in "YES", or in "xsl:function not supported, but properly
handled (ignored)". Instead, it aborts with:
compilation error: file ... line 30 element function
(see also https://bugzilla.gnome.org/show_bug.cgi?id=677901)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Julian Reschke
Note that this libxslt bug has been fixed 2 months ago.
Alexey Proskuryakov
Thank you for the update, marking INVALID as a non-WebKit issue.