[xsd-users] Having trouble with NMTOKENS
Gerard Lanois
gerard at lanois.com
Mon Apr 9 14:37:51 EDT 2007
I would greatly appreciate if you could send me a pre-release binary
with the fix.
I am in complete agreement with your second paragraph. This was
a contrived example just to demonstrate the problem. My "real"
schema is big and complicated, and has more appropriate usage
of NMTOKENS.
Thanks for your help!
-Gerard
On 4/9/07, Boris Kolpackov <boris at codesynthesis.com> wrote:
> Hi Gerard,
>
> Gerard Lanois <gerard at lanois.com> writes:
>
> > However, if I change the NMTOKEN to be NMTOKENS
> > (note the "S" at the end), the resulting .cxx file does not compile.
>
> That's a bug. I've fixed it for the next release. If you would like,
> I can send you a pre-release binary with this fix.
>
> Also note that using NMTOKENS as a base for this enumeration does
> not make much sense. NMTOKENS is a list (space-separated) of NMTOKEN.
> Also the generated code for the two will be quite different. The
> NMTOKEN based type will have nice C++ enum translation while the
> NMTOKENS-based case will be translated to simple derivation.
>
>
> hth,
> -boris
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (GNU/Linux)
>
> iQGVAwUBRhp/QsiAKQuuCE8dAQIE3wwAojPdv9khVDsGA0MMtMYdluhwRrMChaRV
> R/P+yrCC/qNUMjWrzcIm60B+eFTauz8sCqy08rk7+G9Mc24YumjK+OVTYFaFPw4g
> DiEvu2e7DhQecWN/p7/C6mvP05bkdLqhwfT+4/rMEOTaYmiI6Y69HSNoEl0JtbcY
> z9p7Lcjd1OcBQygN5k+gtdxw4WkpeSYFX/XtnKSqy8P0BxG2uGddv0/Y/9UcImP3
> NC4hb6F1sEPkXm6CGG8XbMOiipwGrNkXY1cPK6YxgxQWQUte8BOBpq3qUGMnu7py
> RpQEm233ZGsUP3UpSHtTKUyGg5ECaTLck84ux17Jan7TGAMp0MQj4dmoudVRJPfs
> RuwDCDI+T5ygsb5MmK5CDMeiG6DZ3Fv2toTye9PT1bh7JXuCcq7dui6LPbIfFSSi
> +LH+5zZ/mwSLeKCp6iP/eTzLQ/4/52MutNz4JN6pE/6coZq1jb5TzOx37EB3Z7H/
> PV9DebGKC8Cyh2vbAnR9J2lljrsnANYN
> =LWSq
> -----END PGP SIGNATURE-----
>
>
More information about the xsd-users
mailing list