That's bad news. :-( `--one-file-per-xsd` doesn't help:
$ generateDS --one-file-per-xsd --output-directory=test root.xsd
...
RuntimeError: Extension/restriction recursion detected. Suggest you check
definitions of types LifecycleDataType and LifecycleDataType.
The real scheme that I use is a big complex monster distributed over a
hundred of directories. It's been being developed by a big committee of
a few institutions (of which I work in one). It'd be near to impossible
to change anything to make it better suited for `generateDS`.
On Fri, Feb 22, 2019 at 01:59:24PM -0800, Dave Kuhlman
<[email protected]> wrote:
> Oleg,
>
> I don't think that `generateDS.py` handles that case.
>
> And, yes, since they are in two separate namespaces, the are
> different (qualified) names. `generateDS.py` should be able to
> handle that, but it does not.
>
> The only thing that I can suggest is that you look into the use of
> these two options for running `generateDS.py`:
>
> --one-file-per-xsd Create a python module for each XSD processed.
> --output-directory="XXX" Used in conjunction with --one-file-per-xsd.
> The directory where the modules will be created.
>
> Although, that approach adds difficulties of its own.
>
> You can look at the following in the `tests` directory for an
> example of its use:
>
> generateds/tests/oneper00.xsd
> generateds/tests/oneper01.xsd
> generateds/tests/oneper02.xsd
> generateds/tests/oneper03.xsd
> generateds/tests/OnePer/oneperType00_1One.py
> generateds/tests/OnePer/oneperType00_2One.py
> generateds/tests/OnePer/oneperType01_1One.py
> generateds/tests/OnePer/oneperType01_2One.py
> generateds/tests/OnePer/oneperType02_1One.py
> generateds/tests/OnePer/oneperType02_2One.py
> generateds/tests/OnePer/oneperType03_1One.py
> generateds/tests/OnePer/oneperType03_2One.py
> --
>
> Dave Kuhlman
> http://www.davekuhlman.org
Oleg.
--
Oleg Broytman https://phdru.name/ [email protected]
Programmers don't die, they just GOSUB without RETURN.
_______________________________________________
generateds-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/generateds-users