From 8d65e31616e0597076606b477e42711e8b74723a Mon Sep 17 00:00:00 2001 From: "sicking%bigfoot.com" Date: Sun, 16 Jun 2002 16:58:13 +0000 Subject: [PATCH] Attribute axis should not include namespace declarations. b=123357 r=peterv sr=jst --- extensions/transformiix/source/xpath/LocationStep.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/transformiix/source/xpath/LocationStep.cpp b/extensions/transformiix/source/xpath/LocationStep.cpp index 8f9afd09cce..ca2571c736a 100644 --- a/extensions/transformiix/source/xpath/LocationStep.cpp +++ b/extensions/transformiix/source/xpath/LocationStep.cpp @@ -92,7 +92,8 @@ ExprResult* LocationStep::evaluate(txIEvalContext* aContext) if (atts) { for (PRUint32 i = 0; i < atts->getLength(); i++) { Node* attr = atts->item(i); - if (mNodeTest->matches(attr, aContext)) + if (attr->getNamespaceID() != kNameSpaceID_XMLNS && + mNodeTest->matches(attr, aContext)) nodes->append(attr); } }