Permalink
Browse files

Fix an idness issue when building the tree

* libxslt/attributes.c: fix an IDness issue when building the tree
  • Loading branch information...
1 parent 7869cd2 commit 157e6d278bf3371cc9a96e53dfda82d5f2c268ae @veillard veillard committed Jul 24, 2009
Showing with 11 additions and 0 deletions.
  1. +4 −0 ChangeLog
  2. +7 −0 libxslt/attributes.c
View
@@ -1,3 +1,7 @@
+Fri Jul 24 10:16:24 CEST 2009 Daniel Veillard <veillard@redhat.com>
+
+ * libxslt/attributes.c: fix an IDness issue when building the tree
+
Tue May 12 09:03:46 CEST 2009 Daniel Veillard <veillard@redhat.com>
* configure.in: adapt the extra version detection code to git
View
@@ -978,6 +978,13 @@ xsltAttributeInternal(xsltTransformContextPtr ctxt,
if (inst->children->name == xmlStringTextNoenc)
copyTxt->name = xmlStringTextNoenc;
+ /*
+ * since we create the attribute without content IDness must be
+ * asserted as a second step
+ */
+ if ((copyTxt->content != NULL) &&
+ (xmlIsID(attr->doc, attr->parent, attr)))
+ xmlAddID(NULL, attr->doc, copyTxt->content, attr);
} else {
/*
* The sequence constructor might be complex, so instantiate it.

0 comments on commit 157e6d2

Please sign in to comment.