+Fri Nov 17 09:53:08 HKT 2006 William Brack <wbrack@mmm.com.hk>
+
+ * libxslt/transform.c: fixed problem with entity handling
+ within xsltCopyAttrListNoOverwrite (#352907)
+ * tests/general/bug-164.xsl, tests/general/bug-164.out,
+ tests/docs/bug-164.oxml: added a regression test for this
+
Thu Oct 26 15:31:01 CEST 2006 Daniel Veillard <daniel@veillard.com>
* NEWS configure.in doc//*: preparing release of libxslt-1.1.18,
} else
copyNs = NULL;
}
+ /*
+ * If attribute has a value, we need to copy it (watching out
+ * for possible entities)
+ */
if (attr->children)
- value = xmlNodeListGetString(attr->doc, attr->children, 1);
+ value = xmlNodeListGetString(attr->doc, attr->children, 0);
/*
* REVISIT: I think xmlNewDocProp() is the only attr function
* which does not eval if the attr is of type ID. This is good,
bug-160.xml \
bug-161.xml \
bug-163.xml \
+ bug-164.xml \
character.xml \
array.xml \
items.xml
--- /dev/null
+<?xml version="1.0"?>
+<doc>
+ <stuff name="A & B"/>
+</doc>
bug-160.out bug-160.xsl \
bug-161.out bug-161.xsl \
bug-163.out bug-163.xsl \
+ bug-164.out bug-164.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
--- /dev/null
+<?xml version="1.0" encoding="us-ascii"?>
+
+ <stuff name="A & B"/>
+
--- /dev/null
+<?xml version="1.0"?>
+<xsl:stylesheet
+ version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ >
+
+<xsl:output encoding="us-ascii"/>
+
+<xsl:template match="stuff">
+ <xsl:copy-of select="."/>
+</xsl:template>
+
+</xsl:stylesheet>