mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-09-14 05:09:26 +03:00
* tests/general/bug-36-inc.xsl tests/general/bug-37-inc.xsl tests/general/bug-65-inc.xsl tests/general/bug-100.xsl tests/REC/test-15-1.xsl tests/REC/test-7.1.1-3.xsl tests/namespaces/extra2.xsl tests/extensions/module.xsl tests/plugins/plugin.xsl python/tests/extelem.py python/tests/extfunc.py: Fixed regression tests wrt usage of the attributes "exclude-result-prefixes" and "extension-element-prefixes". test-7.1.1-3.xsl fails now, since the code still does not exclude ns-decls correctly.
27 lines
951 B
XML
27 lines
951 B
XML
<?xml version="1.0"?>
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:libxslt="http://xmlsoft.org/XSLT/namespace" exclude-result-prefixes="libxslt" version="1.0">
|
|
<xsl:output method="xml" indent="yes"/>
|
|
<xsl:variable name="one">
|
|
<xsl:copy-of select="."/>
|
|
</xsl:variable>
|
|
<xsl:variable name="two" select="document('bug-65.ent')"/>
|
|
<xsl:template match="/">
|
|
<xsl:apply-templates select="$two" mode="two"/>
|
|
</xsl:template>
|
|
<xsl:template match="*" mode="two">
|
|
<xsl:for-each select="//content">
|
|
<xsl:apply-templates select="libxslt:node-set($one)" mode="one"/>
|
|
<xsl:text>
|
|
-----------------
|
|
</xsl:text>
|
|
</xsl:for-each>
|
|
</xsl:template>
|
|
<xsl:template match="*" mode="one">
|
|
<xsl:for-each select="//content">
|
|
<!-- here is the problem (.//content works well, but I need the key
|
|
function)-->
|
|
<xsl:copy-of select="."/>
|
|
</xsl:for-each>
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|