[xsd-users] --type-regex looses default regex
Jean-Pierre Bergamin
james at ractive.ch
Mon Sep 8 12:11:39 EDT 2008
Hi xsd-Users
If I add the option "--type-regex /(.+)Type/$1/" (to get rid of the
"Type" suffix in class names) to the command line of xsd, the generated
class names contain the full namespace, i.e. class
http___www_example_com_somewhat_SomeName. When having a look at the
output with --name-regex-trace, the normally applied regex (?:[^ ]*
)?([^,]+) is not applied any more. Shouldn't this be applied anyway? The
documentation of type-regex says: "Add <regex> to the list of regular
expressions", so I'm guessing that my given regex is evaluated after the
default one. Am I wrong?
Using "--type-regex "/(?:[^ ]* )?([^,]+)Type/$1/"" works as expected.
Regards
James
More information about the xsd-users
mailing list