[xsd-users] --suppress-parsing generates compiler errors
Boris Kolpackov
boris at codesynthesis.com
Wed Apr 11 04:29:34 EDT 2007
Hi Glenn,
I've CC'ed xsd-users to my reply so that others with similar problems
can benefit from this discussion.
Glenn Nieuwenhuyse <glenn.nieuwenhuyse at gmail.com> writes:
> In attachment you'll find an example of an xsd file which illustrates this
> problem.
I see what the problem is now: the generated code for default/fixed
attributes relies on one of the parsing constructors. I will need
to think some more on how to fix this without diminishing the
benefits of --suppress-parsing. Hopefully the fix will be in the
next release.
A workaround for the meantime is to put simple types that are used
in default/fixed attributes (like type_attr_type in the schema you
provided) into a separate schema file which is included into the
main schema. You can then compile this schema file without the
--suppress-parsing option to generate the parsing constructors.
Thanks for the bug report and the test case!
-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/20070411/72873aa0/attachment.pgp
More information about the xsd-users
mailing list