mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-28 04:41:59 +03:00
Fixed regression tests wrt usage of the attributes
* 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.
This commit is contained in:
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
|||||||
|
Thu Mar 30 17:23:52 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
Thu Mar 30 17:11:53 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
|
Thu Mar 30 17:11:53 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
|
||||||
|
|
||||||
* libxslt/xslt.c libxslt/xsltutils.c libxslt/preproc.c
|
* libxslt/xslt.c libxslt/xsltutils.c libxslt/preproc.c
|
||||||
|
@ -41,7 +41,7 @@ styledoc = libxml2.parseDoc("""
|
|||||||
<xsl:stylesheet version='1.0'
|
<xsl:stylesheet version='1.0'
|
||||||
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
|
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
|
||||||
xmlns:foo='%s'
|
xmlns:foo='%s'
|
||||||
xsl:extension-element-prefixes='foo'>
|
extension-element-prefixes='foo'>
|
||||||
|
|
||||||
<xsl:template match='/'>
|
<xsl:template match='/'>
|
||||||
<article><foo:test>FAILURE</foo:test></article>
|
<article><foo:test>FAILURE</foo:test></article>
|
||||||
|
@ -30,7 +30,7 @@ styledoc = libxml2.parseDoc("""
|
|||||||
<xsl:stylesheet version='1.0'
|
<xsl:stylesheet version='1.0'
|
||||||
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
|
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
|
||||||
xmlns:foo='http://example.com/foo'
|
xmlns:foo='http://example.com/foo'
|
||||||
xsl:exclude-result-prefixes='foo'>
|
exclude-result-prefixes='foo'>
|
||||||
|
|
||||||
<xsl:param name='bar'>failure</xsl:param>
|
<xsl:param name='bar'>failure</xsl:param>
|
||||||
<xsl:template match='/'>
|
<xsl:template match='/'>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:test="http://example.org/"
|
xmlns:test="http://example.org/"
|
||||||
xsl:extension-element-prefixes="test"
|
extension-element-prefixes="test"
|
||||||
exclude-result-prefixes="test"
|
exclude-result-prefixes="test"
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
<doc:doc>Some ignored documentation the prefix should not show
|
<doc:doc>Some ignored documentation the prefix should not show
|
||||||
up on the doc element</doc:doc>
|
up on the doc element</doc:doc>
|
||||||
<xsl:template xsl:exclude-result-prefixes="doc" match="/">
|
<xsl:template match="/">
|
||||||
<out>SUCCESS</out>
|
<out xsl:exclude-result-prefixes="doc">SUCCESS</out>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:libxslt="http://xmlsoft.org/XSLT/"
|
xmlns:libxslt="http://xmlsoft.org/XSLT/"
|
||||||
xmlns:test="http://xmlsoft.org/XSLT/"
|
xmlns:test="http://xmlsoft.org/XSLT/"
|
||||||
xsl:extension-element-prefixes="libxslt test"
|
extension-element-prefixes="libxslt test"
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
<!-- the prefix is registered twice to check single initialization -->
|
<!-- the prefix is registered twice to check single initialization -->
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns="http://xmlsoft.org/XSLT/"
|
xmlns="http://xmlsoft.org/XSLT/"
|
||||||
xsl:extension-element-prefixes="#default"
|
extension-element-prefixes="#default"
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<test/>
|
<test/>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:n="http://xmlsoft.org/"
|
xmlns:n="http://xmlsoft.org/"
|
||||||
xsl:exclude-result-prefixes="n"
|
exclude-result-prefixes="n"
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
|
|
||||||
<xsl:variable name="var" select="/n:x" />
|
<xsl:variable name="var" select="/n:x" />
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:n="http://xmlsoft.org/"
|
xmlns:n="http://xmlsoft.org/"
|
||||||
xsl:exclude-result-prefixes="n"
|
exclude-result-prefixes="n"
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:libxslt="http://xmlsoft.org/XSLT/namespace" xsl:exclude-result-prefixes="libxslt" 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:output method="xml" indent="yes"/>
|
||||||
<xsl:variable name="one">
|
<xsl:variable name="one">
|
||||||
<xsl:copy-of select="."/>
|
<xsl:copy-of select="."/>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns="http://www.w3.org/TR/xhtml1/strict"
|
xmlns="http://www.w3.org/TR/xhtml1/strict"
|
||||||
xmlns:libxml="http://xmlsoft.org/XSLT/namespace"
|
xmlns:libxml="http://xmlsoft.org/XSLT/namespace"
|
||||||
xsl:extension-element-prefixes="libxml">
|
extension-element-prefixes="libxml">
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<libxml:debug/>
|
<libxml:debug/>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:libxslt="http://xmlsoft.org/xslt/testplugin"
|
xmlns:libxslt="http://xmlsoft.org/xslt/testplugin"
|
||||||
xmlns:test="http://xmlsoft.org/xslt/testplugin"
|
xmlns:test="http://xmlsoft.org/xslt/testplugin"
|
||||||
xsl:extension-element-prefixes="libxslt test"
|
extension-element-prefixes="libxslt test"
|
||||||
version='1.0'>
|
version='1.0'>
|
||||||
<!-- the prefix is registered twice to check single initialization -->
|
<!-- the prefix is registered twice to check single initialization -->
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
|
Reference in New Issue
Block a user