dbertoni 01/02/10 21:16:04
Modified: c/src/XSLT ElemLiteralResult.cpp
Log:
Changed code to use newer interface. Removed code to work around Xerces
DOMString problem.
Revision Changes Path
1.28 +3 -10 xml-xalan/c/src/XSLT/ElemLiteralResult.cpp
Index: ElemLiteralResult.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemLiteralResult.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- ElemLiteralResult.cpp 2001/01/30 22:01:36 1.27
+++ ElemLiteralResult.cpp 2001/02/11 05:16:04 1.28
@@ -206,11 +206,6 @@
-// $$$ ToDo: Get rid of this when we get rid of Xerces' DOMString!!!
-static const XalanDOMChar theDummy = 0;
-
-
-
void
ElemLiteralResult::execute(
StylesheetExecutionContext&
executionContext,
@@ -254,11 +249,9 @@
thePrefix,
theStringedValue) == false)
{
- // $$$ ToDo: Get rid of theDummy when we get
rid of Xerces' DOMString!!!
- executionContext.replacePendingAttribute(
- c_wstr(avt->getName()),
- c_wstr(avt->getType()),
- length(theStringedValue) == 0 ?
&theDummy : c_wstr(theStringedValue));
+ executionContext.addResultAttribute(
+ avt->getName(),
+ theStringedValue);
}
clear(thePrefix);