Copy all stylesheet namespaces during apply-gen
* src/transform/apply-gen.xsl: Copy /xsl:*/namespace::* * test/transform/apply-gen.xspec: Add respective testmaster
parent
cc91a821e8
commit
1fc360bc1c
|
@ -63,6 +63,10 @@
|
||||||
</comment>
|
</comment>
|
||||||
|
|
||||||
<out:stylesheet version="2.0">
|
<out:stylesheet version="2.0">
|
||||||
|
<!-- namespaces might be referenced in strings (e.g. @as), and so may
|
||||||
|
not be copied by default -->
|
||||||
|
<sequence select="namespace::*[ name() ]" />
|
||||||
|
|
||||||
<xsl:apply-templates mode="fgen:create" />
|
<xsl:apply-templates mode="fgen:create" />
|
||||||
</out:stylesheet>
|
</out:stylesheet>
|
||||||
</document>
|
</document>
|
||||||
|
|
|
@ -40,6 +40,21 @@
|
||||||
</variable>
|
</variable>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- source namespaces must be copied -->
|
||||||
|
<scenario label="source namespaces">
|
||||||
|
<context>
|
||||||
|
<xsl:stylesheet xmlns:foobar="baz">
|
||||||
|
<xsl:function name="foobar:baz">
|
||||||
|
<xsl:param name="foo" />
|
||||||
|
</xsl:function>
|
||||||
|
</xsl:stylesheet>
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<expect label="are copied to destination"
|
||||||
|
test="exists( xsl:stylesheet/namespace::foobar )" />
|
||||||
|
</scenario>
|
||||||
|
|
||||||
|
|
||||||
<!-- basic case -->
|
<!-- basic case -->
|
||||||
<scenario label="given a unary function">
|
<scenario label="given a unary function">
|
||||||
<context>
|
<context>
|
||||||
|
|
Loading…
Reference in New Issue