dbertoni    01/08/05 18:40:09

  Modified:    c/src/XSLT FunctionGenerateID.cpp
  Log:
  Added document instance number to generated ID.
  
  Revision  Changes    Path
  1.16      +12 -1     xml-xalan/c/src/XSLT/FunctionGenerateID.cpp
  
  Index: FunctionGenerateID.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/FunctionGenerateID.cpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- FunctionGenerateID.cpp    2001/01/25 17:15:07     1.15
  +++ FunctionGenerateID.cpp    2001/08/06 01:40:09     1.16
  @@ -58,7 +58,7 @@
   
   
   
  -#include <XalanDOM/XalanNode.hpp>
  +#include <XalanDOM/XalanDocument.hpp>
   
   
   
  @@ -96,7 +96,18 @@
                const XalanNode*        theNode,
                XalanDOMString&         theResult)
   {
  +     assert(theNode != 0);
  +     assert(theNode->getOwnerDocument() != 0);
  +
        const unsigned long             theIndex = theNode->getIndex();
  +     const unsigned long             theNumber = 
theNode->getOwnerDocument()->getNumber();
  +
  +     if (theNumber != 0)
  +     {
  +             UnsignedLongToHexDOMString(theNumber, theResult);
  +
  +             append(theResult, XalanDOMChar(XalanUnicode::charFullStop));
  +     }
   
        if (theIndex == 0)
        {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to