You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Gordon, M Scott" <m....@baesystems.com> on 2002/11/05 00:26:34 UTC

Use of loadGrammar on schema with import declarations

Does the loadGrammar() method support loading a grammar that has import
declarations for external namespaces?  Do I need to call loadGrammar() on
each of the namespaces that are imported in a schema?  Or, can I just call
loadGrammar() on the main schema that contains the import declarations, and
have the parser discover the import declarations and resolve the imported
namespace?  Has anyone done this successfully?  Are there any examples of
this somewhere?

Any feedback is greatly appreciated.

Thanks,

M. Scott Gordon
ADSS Software Engineer
BAE Systems Mission Solutions Inc.
m.gordon@baesystems.com


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


Re: Use of loadGrammar on schema with import declarations

Posted by Tinny Ng <tn...@ca.ibm.com>.
Scott,

Just call loadGrammar() on the main schema that contains the import
declarations.    There is no sample yet to illustrate Preparsing Grammar,
all we have right now are those documented in the Programming Guide:

    http://xml.apache.org/xerces-c/program-others.html#GrammarCache

Tinny
----- Original Message -----
From: "Gordon, M Scott" <m....@baesystems.com>
To: <xe...@xml.apache.org>
Cc: "Gordon, M Scott" <m....@baesystems.com>
Sent: Monday, November 04, 2002 6:26 PM
Subject: Use of loadGrammar on schema with import declarations


>
> Does the loadGrammar() method support loading a grammar that has import
> declarations for external namespaces?  Do I need to call loadGrammar() on
> each of the namespaces that are imported in a schema?  Or, can I just call
> loadGrammar() on the main schema that contains the import declarations,
and
> have the parser discover the import declarations and resolve the imported
> namespace?  Has anyone done this successfully?  Are there any examples of
> this somewhere?
>
> Any feedback is greatly appreciated.
>
> Thanks,
>
> M. Scott Gordon
> ADSS Software Engineer
> BAE Systems Mission Solutions Inc.
> m.gordon@baesystems.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>


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