[xsd-users] --include-prefix logic

Boris Kolpackov boris at codesynthesis.com
Mon Mar 19 13:27:32 EDT 2007


Hi Ray,

Ray Lischner <rlischner at proteus-technologies.com> writes:

> I want to organize my #include headers as follows:
>
> xml/XmlSchema.h   (for my --generate-xml-schema result)
> foo/Foo.h                (for the Foo.xsd schema)
>
> In other words, I want Foo.h to contain the following directives:
> #include <xml/XmlSchema.h>
> ...
> #include <foo/Foo.txx>
>
> ...
>
> Is there a way I can arrange the headers the way I want using only
> Code Synthesis command line options?

There is the --include-regex option which allows you to mangle
include directives in pretty much any way you want. One way to
handle your case would be to use the following options:

--extern-xml-schema XmlSchema.xsd
--include-prefix foo/
--include-regex '%foo/XmlSchema\.(.+)%xml/XmlSchema.$1%'

hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070319/e24a4a7a/attachment.pgp


More information about the xsd-users mailing list