mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-11-05 12:10:38 +03:00
operation xsltCopyNamespace(). cleaned up xsltCopyNamespaceList() - libxslt/transform.c: cleaned up xsltCopyNode to cope with any kind of input nodes. - libxslt/variables.c: checked and closed the last TODO about namespace propagation - tests/docs/Makefile.am tests/general/Makefile.am tests/general/bug-38-* tests/docs/bug-38-*: added a specific regression test for #56115 Daniel
18 lines
342 B
XML
18 lines
342 B
XML
<xsl:stylesheet version="1.0"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
<xsl:template name="ns">
|
|
<ns xmlns:ns="http://whatever"/>
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="/*">
|
|
<elem>
|
|
<xsl:copy-of select="document('')/*/
|
|
xsl:template[@name='ns']/
|
|
ns/namespace::ns"/>
|
|
</elem>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|