src/XPathHandler.h
branchv_0
changeset 4 c58c7f2d4785
parent 3 709abeb5f6d1
child 5 682c378bc4a2
equal deleted inserted replaced
3:709abeb5f6d1 4:c58c7f2d4785
   126 		} else {
   126 		} else {
   127 			if (isPrependingInputAttributes()) copyInputAttributesToOutput();
   127 			if (isPrependingInputAttributes()) copyInputAttributesToOutput();
   128 			for (auto oa : currentRelationConfiguration->outputAttributes) currentWriterMetadata.push_back({oa.name, oa.type});
   128 			for (auto oa : currentRelationConfiguration->outputAttributes) currentWriterMetadata.push_back({oa.name, oa.type});
   129 			if (isAppendingInputAttributes()) copyInputAttributesToOutput();
   129 			if (isAppendingInputAttributes()) copyInputAttributesToOutput();
   130 
   130 
   131 			// TODO: prepare DOM
       
   132 			dom.get_document()->create_root_node("relpipe-tr-xpath");
   131 			dom.get_document()->create_root_node("relpipe-tr-xpath");
       
   132 			dom.get_document()->get_root_node()->add_child("relation-name")->add_child_text(s2x(name));
   133 			resetRecordElement();
   133 			resetRecordElement();
   134 		}
   134 		}
   135 
   135 
   136 		relationalWriter->startRelation(name, currentWriterMetadata, true);
   136 		relationalWriter->startRelation(name, currentWriterMetadata, true);
   137 	}
   137 	}