You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/10/12 22:44:01 UTC

cvs commit: xml-xerces/c/src/validators/schema SchemaValidator.cpp

tng         01/10/12 13:44:01

  Modified:    c/src/validators/schema SchemaValidator.cpp
  Log:
  Schema Fix: Notation Uri Binding.
  
  Revision  Changes    Path
  1.20      +5 -5      xml-xerces/c/src/validators/schema/SchemaValidator.cpp
  
  Index: SchemaValidator.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/validators/schema/SchemaValidator.cpp,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- SchemaValidator.cpp	2001/10/04 15:08:56	1.19
  +++ SchemaValidator.cpp	2001/10/12 20:44:01	1.20
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: SchemaValidator.cpp,v $
  + * Revision 1.20  2001/10/12 20:44:01  tng
  + * Schema Fix: Notation Uri Binding.
  + *
    * Revision 1.19  2001/10/04 15:08:56  knoaman
    * Add support for circular import.
    *
  @@ -425,13 +428,10 @@
                   //  the notation pool (after the Grammar is parsed), then obviously
                   //  this value will be legal since it matches one of them.
                   //
  -                XMLBuffer nameBuf(XMLString::stringLen(attrValue)+1);
  -                XMLBuffer prefixBuf(XMLString::stringLen(attrValue)+1);
                   XMLBuffer notationBuf;
  -                unsigned int uriId = getScanner()->resolveQName(attrValue, nameBuf, prefixBuf, ElemStack::Mode_Attribute);
  -                notationBuf.set(getScanner()->getURIText(uriId));
  +                notationBuf.set(fSchemaGrammar->getTargetNamespace());
                   notationBuf.append(chColon);
  -                notationBuf.append(nameBuf.getRawBuffer());
  +                notationBuf.append(attrValue);
   
                   attDefDV->validate(notationBuf.getRawBuffer());
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org