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.
18 lines
490 B
XML
18 lines
490 B
XML
<?xml version="1.0"?>
|
|
<xsl:stylesheet version="1.0"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:x="urn:math">
|
|
|
|
<xsl:import href="bug-223-imp.xsl"/>
|
|
<xsl:include href="bug-223-inc.xsl"/>
|
|
|
|
<xsl:output omit-xml-declaration="yes"/>
|
|
|
|
<xsl:template match="/">
|
|
<xsl:value-of select="x:pow(count(cd))"/>
|
|
<xsl:value-of select="' '"/>
|
|
<xsl:value-of select="x:sqrt(count(cd))"/>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|