dbertoni    01/10/26 14:07:30

  Modified:    c/src/XSLT FunctionGenerateID.cpp
  Log:
  Consistently use document number in ID.
  
  Revision  Changes    Path
  1.20      +6 -8      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.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- FunctionGenerateID.cpp    2001/09/26 21:30:23     1.19
  +++ FunctionGenerateID.cpp    2001/10/26 21:07:30     1.20
  @@ -99,20 +99,18 @@
        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);
  +     UnsignedLongToHexDOMString(theNumber, theResult);
   
  -             append(theResult, XalanDOMChar(XalanUnicode::charFullStop));
  -     }
  +     append(theResult, XalanDOMChar(XalanUnicode::charFullStop));
  +
  +     const unsigned long             theIndex = theNode->getIndex();
   
        if (theIndex == 0)
        {
  -             // We're assuming here that each nodes has an implementation with a 
  -             // unique address that we can convert into a string
  +             // We're assuming here that each node has an implementation with a 
  +             // unique address that we can convert into a string...
                PointerToDOMString(theNode, theResult);
        }
        else
  
  
  

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

Reply via email to