You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/02/11 06:16:04 UTC

cvs commit: xml-xalan/c/src/XSLT ElemLiteralResult.cpp

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);