mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2026-01-07 21:58:22 +03:00
applied patch from Josh Parsons fixing bug #100056 added the example in
* libxslt/extensions.c: applied patch from Josh Parsons fixing bug #100056 * tests/docs/Makefile.am tests/docs/bug-100.xml tests/general/Makefile.am tests/general/bug-100.*: added the example in the regression tests for this case * tests/docs/Makefile.am tests/docs/bug-99.xml tests/general/Makefile.am tests/general/bug-99.*: this test covers an xsl:attribute namespace bug that Norm pointed out. Daniel
This commit is contained in:
11
ChangeLog
11
ChangeLog
@@ -1,3 +1,14 @@
|
||||
Mon Dec 2 17:19:38 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* libxslt/extensions.c: applied patch from Josh Parsons fixing bug
|
||||
#100056
|
||||
* tests/docs/Makefile.am tests/docs/bug-100.xml
|
||||
tests/general/Makefile.am tests/general/bug-100.*: added the
|
||||
example in the regression tests for this case
|
||||
* tests/docs/Makefile.am tests/docs/bug-99.xml
|
||||
tests/general/Makefile.am tests/general/bug-99.*: this test
|
||||
covers an xsl:attribute namespace bug that Norm pointed out.
|
||||
|
||||
Thu Nov 28 17:52:21 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* libxslt/xsltInternals.h libxslt/xsltutils.c libxslt/xsltutils.h
|
||||
|
||||
@@ -757,6 +757,9 @@ xsltCheckExtPrefix(xsltStylesheetPtr style, const xmlChar *prefix) {
|
||||
if ((style == NULL) || (style->nsDefs == NULL))
|
||||
return(0);
|
||||
|
||||
if (prefix == NULL)
|
||||
prefix = BAD_CAST "#default";
|
||||
|
||||
cur = (xsltExtDefPtr) style->nsDefs;
|
||||
while (cur != NULL) {
|
||||
if (xmlStrEqual(prefix, cur->prefix))
|
||||
|
||||
@@ -98,6 +98,8 @@ EXTRA_DIST = \
|
||||
bug-96.xml \
|
||||
bug-97.xml \
|
||||
bug-98.xml \
|
||||
bug-99.xml \
|
||||
bug-100.xml \
|
||||
character.xml \
|
||||
array.xml \
|
||||
items.xml
|
||||
|
||||
1
tests/docs/bug-100.xml
Normal file
1
tests/docs/bug-100.xml
Normal file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
tests/docs/bug-99.xml
Normal file
1
tests/docs/bug-99.xml
Normal file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
@@ -102,6 +102,8 @@ EXTRA_DIST = \
|
||||
bug-96.out bug-96.xsl \
|
||||
bug-97.out bug-97.xsl \
|
||||
bug-98.out bug-98.xsl \
|
||||
bug-99.out bug-99.xsl \
|
||||
bug-100.out bug-100.xsl \
|
||||
character.out character.xsl \
|
||||
character2.out character2.xsl \
|
||||
itemschoose.out itemschoose.xsl \
|
||||
|
||||
2
tests/general/bug-100.out
Normal file
2
tests/general/bug-100.out
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--libxslt:test element test worked-->
|
||||
9
tests/general/bug-100.xsl
Normal file
9
tests/general/bug-100.xsl
Normal file
@@ -0,0 +1,9 @@
|
||||
<?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"
|
||||
version='1.0'>
|
||||
<xsl:template match="/">
|
||||
<test/>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
2
tests/general/bug-99.out
Normal file
2
tests/general/bug-99.out
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc xmlns="ns1" xmlns:ns1="ns1" ns1:attr="foo!"/>
|
||||
16
tests/general/bug-99.xsl
Normal file
16
tests/general/bug-99.xsl
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
|
||||
<xsl:output method="xml"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:element name="doc" namespace="ns1">
|
||||
<xsl:attribute name="attr" namespace="ns1">
|
||||
<xsl:text>foo!</xsl:text>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
Reference in New Issue
Block a user