Hello.
For handling different schema versions it could be nice to include the
version number in the targetNamespace of a schema (see
http://www.devx.com/xml/Article/22553 to get an overview of what I mean).
So I tested this a little bit. The following schema is my test schema (I
compile it using the xmlbeans ant task):
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://foo.bar/v01-01-00"
targetNamespace="http://foo.bar/v01-01-00"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Root">
<xs:complexType>
<xs:sequence>
<xs:element name="foobar" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
The resulting package for the generated classes is: bar.foo.v010100 -
alright.
But if I change the targetNamespace to v01.01.00 the resulting package
is bar.foo.v0101! If I use v00.01.10 as version number the resulting
package is bar.foo.v0001 whereas if i use v00-01-10 it's bar.foo.v000110
Seems to me that if I use a version number like vx.y.z with x, y and z
being any number of digits the third part of the version number - z - is
completely ignored when using dots to separate version fragments. I
compiled with v0123456.1.01 and the result was bar.foo.v01234561 (using
hyphens the result is bar.foo.v0123456110).
Is this a bug? It would be nice to be able to compile schemas that
include the schema version in their targetNamespace correctly even if
the version number uses dots. What do you think of this?
Regards,
Johannes
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]