[xsd-users] --enumerator-regex usage.
Bill Pringlemeir
bpringle at sympatico.ca
Tue Jul 21 17:35:01 EDT 2009
With the following schema,
[sample.xsd]
<xs:simpleType name="bar">
<xs:restriction base="xs:string">
<xs:enumeration value="foo" />
<xs:enumeration value="blip" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="baz">
<xs:restriction base="xs:string">
<xs:enumeration value="foo" />
<xs:enumeration value="blonk" />
</xs:restriction>
</xs:simpleType>
[/sample.xsd]
I turned on --name-regex-trace and the output looks like this for
enums,
...
enumerator name: 'foo'
...
I was hoping for,
enumerator name: 'bar foo'
enumerator name: 'baz foo'
or something like that. Is it manditory that each simpleType have a
seperate file to apply the transform rules on an enum? I don't know
if many people use the --enumerator-regex option. I would suggest a
--qualified-enumerator-regex or updating 'enumerator name:' text to
inlude the simpleType.
fwiw,
Bill Pringlemeir.
More information about the xsd-users
mailing list