Ignore:
Timestamp:
May 19, 2013, 9:20:51 AM (6 years ago)
Author:
cameron
Message:

Fixes for icXML 0.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icXML/icXML-devel/src/icxmlc/parsers/XMLDocumentDisseminator.hpp

    r3151 r3157  
    1313
    1414XERCES_CPP_NAMESPACE_BEGIN
     15
    1516
    1617class XMLDocumentDisseminator
     
    4950
    5051    IDISA_ALWAYS_INLINE
    51     void readContextId();
     52    unsigned int getNamespaceContextId();
    5253
    5354private:
     
    123124                const QName * const grammarName = elemDecl.fElementName;
    124125                elemDecl.fElementName = elemName;
    125                 readContextId();
     126                elemDecl.fNamespaceContextId = getNamespaceContextId();
    126127                fDocumentHandler->startElement(elemDecl, uriId, elemName->getPrefix(), fAttrList, attributeCount, isEmpty, 0);
    127128                elemDecl.fElementName = grammarName;
     
    136137                const QName * const grammarName = elemDecl.fElementName;
    137138                elemDecl.fElementName = elemName;
    138                 readContextId();
     139                elemDecl.fNamespaceContextId = getNamespaceContextId();
    139140                fDocumentHandler->endElement(elemDecl, uriId, 0, elemName->getPrefix());
    140141                elemDecl.fElementName = grammarName;
     
    168169}
    169170
    170 void XMLDocumentDisseminator::readContextId()
     171unsigned int XMLDocumentDisseminator::getNamespaceContextId()
    171172{
    172173    // the namespace context id allows the scanner to map prefix to uris and determine what
    173174    // prefixes and uris are in scope.
    174     fDocumentHandler->fNamespaceContextId = fContextStream[fContextIdx++];
     175    return fContextStream[fContextIdx++];
    175176}
    176177
Note: See TracChangeset for help on using the changeset viewer.