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>
|
||||
|
||||
* libxslt/xslt.c libxslt/xsltutils.c libxslt/preproc.c
|
||||
|
@ -41,7 +41,7 @@ styledoc = libxml2.parseDoc("""
|
||||
<xsl:stylesheet version='1.0'
|
||||
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
|
||||
xmlns:foo='%s'
|
||||
xsl:extension-element-prefixes='foo'>
|
||||
extension-element-prefixes='foo'>
|
||||
|
||||
<xsl:template match='/'>
|
||||
<article><foo:test>FAILURE</foo:test></article>
|
||||
|
@ -30,7 +30,7 @@ styledoc = libxml2.parseDoc("""
|
||||
<xsl:stylesheet version='1.0'
|
||||
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
|
||||
xmlns:foo='http://example.com/foo'
|
||||
xsl:exclude-result-prefixes='foo'>
|
||||
exclude-result-prefixes='foo'>
|
||||
|
||||
<xsl:param name='bar'>failure</xsl:param>
|
||||
<xsl:template match='/'>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version='1.0'?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:test="http://example.org/"
|
||||
xsl:extension-element-prefixes="test"
|
||||
extension-element-prefixes="test"
|
||||
exclude-result-prefixes="test"
|
||||
version='1.0'>
|
||||
<xsl:template match="/">
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
<doc:doc>Some ignored documentation the prefix should not show
|
||||
up on the doc element</doc:doc>
|
||||
<xsl:template xsl:exclude-result-prefixes="doc" match="/">
|
||||
<out>SUCCESS</out>
|
||||
<xsl:template match="/">
|
||||
<out xsl:exclude-result-prefixes="doc">SUCCESS</out>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:libxslt="http://xmlsoft.org/XSLT/"
|
||||
xmlns:test="http://xmlsoft.org/XSLT/"
|
||||
xsl:extension-element-prefixes="libxslt test"
|
||||
extension-element-prefixes="libxslt test"
|
||||
version='1.0'>
|
||||
<!-- the prefix is registered twice to check single initialization -->
|
||||
<xsl:template match="/">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version='1.0'?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://xmlsoft.org/XSLT/"
|
||||
xsl:extension-element-prefixes="#default"
|
||||
extension-element-prefixes="#default"
|
||||
version='1.0'>
|
||||
<xsl:template match="/">
|
||||
<test/>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version='1.0'?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:n="http://xmlsoft.org/"
|
||||
xsl:exclude-result-prefixes="n"
|
||||
exclude-result-prefixes="n"
|
||||
version='1.0'>
|
||||
|
||||
<xsl:variable name="var" select="/n:x" />
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version='1.0'?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:n="http://xmlsoft.org/"
|
||||
xsl:exclude-result-prefixes="n"
|
||||
exclude-result-prefixes="n"
|
||||
version='1.0'>
|
||||
|
||||
<xsl:template match="/">
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?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:variable name="one">
|
||||
<xsl:copy-of select="."/>
|
||||
|
@ -2,7 +2,7 @@
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.w3.org/TR/xhtml1/strict"
|
||||
xmlns:libxml="http://xmlsoft.org/XSLT/namespace"
|
||||
xsl:extension-element-prefixes="libxml">
|
||||
extension-element-prefixes="libxml">
|
||||
|
||||
<xsl:template match="/">
|
||||
<libxml:debug/>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:libxslt="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'>
|
||||
<!-- the prefix is registered twice to check single initialization -->
|
||||
<xsl:template match="/">
|
||||
|
Reference in New Issue
Block a user