[xsd-users] xsd include path

Boris Kolpackov boris at codesynthesis.com
Mon Dec 14 08:49:32 EST 2009


Hi Benjamin,

Benjamin Schindler <bschindler at inf.ethz.ch> writes:
  
> I have looked at this example - but I'm a bit unsure about the
> semantics. What is the key for the cache-lookup? The path, the filename?
> What happens if two files have the same name?

In the current versions of Xerces-C++ the key is the target namespace
which means if you have more than one schema with the same namespace,
you need to load the "root" schema which includes all the others. This
is pretty much the same requirement as with the schemaLocation attributes.

[For the next version of Xerces-C++ (3.1.0) I have done some work to
 allow loading multiple (different) schemas with the same namespace.]


> Thanks for the hint. I'm not sure whether that would work here as the
> xsd's are modified (in form of a temporary file) at run-time when
> plugins are loaded, so I cannot really compile schemas into the
> application or can I modify the binary representations at run-time?
> (i.e. add includes which are themselves then in form of a binary
> representation)?

No, that is not possible. You will only be able to re-generate the
complete binary representation. Which, I guess, won't be very useful
in your case.

Boris



More information about the xsd-users mailing list