From c9a94f020519d4a389d69071d56c2692cc8fb169 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 20 May 2014 23:51:46 -0400 Subject: [PATCH] A3t - ::findAttribute now properly inserts sub nodes. --- src/A3t.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/A3t.cpp b/src/A3t.cpp index 7bee7adfb..abd00b585 100644 --- a/src/A3t.cpp +++ b/src/A3t.cpp @@ -543,6 +543,9 @@ const std::string A3t::getFilterExpression () } else { + if (sequence != "") + sequence += " "; + sequence += (*i)->attribute ("raw"); } } @@ -595,10 +598,6 @@ const std::string A3t::getFilterExpression () } else if ((*i)->hasTag ("ATTRIBUTE")) { - if (filter != "") - filter += ' '; - - filter += (*i)->attribute ("name") + " = " + (*i)->attribute ("value"); } else if ((*i)->hasTag ("TAG")) { @@ -822,6 +821,16 @@ void A3t::findAttribute () { (*i)->tag ("MODIFIABLE"); } + + Tree* branch = (*i)->addBranch (new Tree ("argAtt")); + branch->attribute ("value", canonical); + + branch = (*i)->addBranch (new Tree ("argAtt")); + branch->attribute ("value", "=="); + branch->tag ("OP"); + + branch = (*i)->addBranch (new Tree ("argAtt")); + branch->attribute ("value", value); } } }