mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-08 21:42:07 +03:00
From the XSLT 1.0 spec: > The designation of a namespace as an extension namespace is effective > within the subtree of the stylesheet rooted at the element bearing the > extension-element-prefixes or xsl:extension-element-prefixes > attribute; a subtree rooted at an xsl:stylesheet element does not > include any stylesheets imported or included by children of that > xsl:stylesheet element. So xsltStyleGetExtData should not search imports for extension element prefixes. This also fixes a mismatch when extension prefixes are looked up in xsltCheckInstructionElement which could lead to xsl:param elements in EXSLT functions being rejected. Fixes #97.
13 lines
417 B
XML
13 lines
417 B
XML
<?xml version="1.0"?>
|
|
<xsl:stylesheet version="1.0"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:x="urn:math"
|
|
xmlns:func="http://exslt.org/functions"
|
|
extension-element-prefixes="func">
|
|
|
|
<func:function name="x:pow">
|
|
<xsl:param name="number"/>
|
|
<func:result select="$number * $number"/>
|
|
</func:function>
|
|
</xsl:stylesheet>
|