dbertoni    2002/08/14 18:00:08

  Modified:    c/src/XercesParserLiaison XercesParserLiaison.cpp
                        XercesParserLiaison.hpp
  Log:
  New properties.
  
  Revision  Changes    Path
  1.49      +50 -0     
xml-xalan/c/src/XercesParserLiaison/XercesParserLiaison.cpp
  
  Index: XercesParserLiaison.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/c/src/XercesParserLiaison/XercesParserLiaison.cpp,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- XercesParserLiaison.cpp   10 Jul 2002 00:40:00 -0000      1.48
  +++ XercesParserLiaison.cpp   15 Aug 2002 01:00:08 -0000      1.49
  @@ -109,6 +109,8 @@
        m_exitOnFirstFatalError(true),
        m_entityResolver(0),
        m_errorHandler(this),
  +     m_externalSchemaLocation(),
  +     m_externalNoNamespaceSchemaLocation(),
        m_documentMap(),
        m_buildBridge(true),
        m_threadSafe(false),
  @@ -126,6 +128,8 @@
        m_exitOnFirstFatalError(true),
        m_entityResolver(0),
        m_errorHandler(this),
  +     m_externalSchemaLocation(),
  +     m_externalNoNamespaceSchemaLocation(),
        m_documentMap(),
        m_buildBridge(true),
        m_threadSafe(false),
  @@ -390,6 +394,42 @@
   
   
   
  +const XalanDOMChar*
  +XercesParserLiaison::getExternalSchemaLocation() const
  +{
  +     return c_wstr(m_externalSchemaLocation);
  +}
  +
  +
  +
  +void
  +XercesParserLiaison::setExternalSchemaLocation(const XalanDOMChar*   
location)
  +{
  +     assert(location != 0);
  +
  +     m_externalSchemaLocation = location;
  +}
  +
  +
  +
  +const XalanDOMChar*
  +XercesParserLiaison::getExternalNoNamespaceSchemaLocation() const
  +{
  +     return c_wstr(m_externalNoNamespaceSchemaLocation);
  +}
  +
  +
  +
  +void
  +XercesParserLiaison::setExternalNoNamespaceSchemaLocation(const 
XalanDOMChar*        location)
  +{
  +     assert(location != 0);
  +
  +     m_externalNoNamespaceSchemaLocation = location;
  +}
  +
  +
  +
   XalanDocument*
   XercesParserLiaison::createDocument(
                        const DOM_Document&             theXercesDocument,
  @@ -560,6 +600,16 @@
        }
   
        theParser->setErrorHandler(m_errorHandler);
  +
  +     if (m_externalSchemaLocation.length() > 0)
  +     {
  +             
theParser->setExternalSchemaLocation(c_wstr(m_externalSchemaLocation));
  +     }
  +
  +     if (m_externalNoNamespaceSchemaLocation.length() > 0)
  +     {
  +             
theParser->setExternalNoNamespaceSchemaLocation(c_wstr(m_externalNoNamespaceSchemaLocation));
  +     }
   
        // Xerces has a non-standard node type to represent the XML decl.
        // Why did they ever do this?
  
  
  
  1.35      +40 -0     
xml-xalan/c/src/XercesParserLiaison/XercesParserLiaison.hpp
  
  Index: XercesParserLiaison.hpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/c/src/XercesParserLiaison/XercesParserLiaison.hpp,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- XercesParserLiaison.hpp   20 May 2002 18:19:59 -0000      1.34
  +++ XercesParserLiaison.hpp   15 Aug 2002 01:00:08 -0000      1.35
  @@ -284,6 +284,42 @@
        setExitOnFirstFatalError(bool   newState);
   
        /**
  +       * This method returns the location for an external schema document
  +       * for parsing.
  +       *
  +       * @return A string representing the location of the external schema 
document
  +       */
  +     virtual const XalanDOMChar*
  +     getExternalSchemaLocation() const;
  +
  +     /**
  +       * This method sets the location for an external schema document
  +       * for parsing.
  +       *
  +       * @param location A string representing the location of the external 
schema document
  +       */
  +     virtual void
  +     setExternalSchemaLocation(const XalanDOMChar*   location);
  +
  +     /**
  +       * This method returns the location for an external schema document
  +       * for parsing.
  +       *
  +       * @return A string representing the location of the external schema 
document
  +       */
  +     virtual const XalanDOMChar*
  +     getExternalNoNamespaceSchemaLocation() const;
  +
  +     /**
  +       * This method sets the location for an external schema document
  +       * for parsing.
  +       *
  +       * @param location A string representing the location of the external 
schema document
  +       */
  +     virtual void
  +     setExternalNoNamespaceSchemaLocation(const XalanDOMChar*        
location);
  +
  +     /**
         * Create a XalanDocument proxy for an existing Xerces document.
         * The parser liaison owns the instance, and you must not delete
         * it.  The liaison will delete it when reset() is called, or the
  @@ -458,6 +494,10 @@
        EntityResolver*         m_entityResolver;
   
        ErrorHandler*           m_errorHandler;
  +
  +     XalanDOMString          m_externalSchemaLocation;
  +
  +     XalanDOMString          m_externalNoNamespaceSchemaLocation;
   
        DocumentMapType         m_documentMap;
   
  
  
  

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

Reply via email to