Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bindingschema_2_0.xsd: globalBindings: extension binding declarations: wrong mulitplicity #239

Open
Tomas-Kraus opened this issue Oct 16, 2012 · 10 comments
Assignees
Labels
4.1 bug Something isn't working Minor Priority

Comments

@Tomas-Kraus
Copy link
Contributor

The following JAXB bindings file creates the Adapter classes as expected, but Eclipse and XMLSpy say it's no valid:

<jxb:bindings xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xsi:schemaLocation="http://java.sun.com/xml/ns/jaxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd" version="2.1">
jxb:globalBindings
<jxb:javaType name="java.util.Calendar" xmlType="xs:date" parseMethod="javax.xml.bind.DatatypeConverter.parseDate" printMethod="javax.xml.bind.DatatypeConverter.printDate" />
<jxb:javaType name="java.util.Calendar" xmlType="xs:dateTime" parseMethod="javax.xml.bind.DatatypeConverter.parseDateTime" printMethod="javax.xml.bind.DatatypeConverter.printDateTime" />
<jxb:javaType name="java.util.Calendar" xmlType="xs:time" parseMethod="javax.xml.bind.DatatypeConverter.parseTime" printMethod="javax.xml.bind.DatatypeConverter.printTime" />
</jxb:globalBindings>
</jxb:bindings>

The error is something like:

cvc-complex-type.2.4.b: The content of element 'jxb:globalBindings' is not complete. One of '

{"http://java.sun.com/xml/ns/jaxb":javaType, "http://java.sun.com/xml/ns/jaxb":serializable, WC[##other:"http://java.sun.com/xml/ns/jaxb"]}

' is expected.

I was pointed out that the multiplicity should be as follows:

<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded">
xs:annotation
xs:documentationallows extension binding declarations to be specified.</xs:documentation>
</xs:annotation>
</xs:any>

@Tomas-Kraus
Copy link
Contributor Author

@glassfishrobot Commented
Reported by puce

@Tomas-Kraus
Copy link
Contributor Author

@glassfishrobot Commented
Was assigned to yaroska

@Tomas-Kraus
Copy link
Contributor Author

@glassfishrobot Commented
gzress said:
Wouldn't it be a little faster to correct the XSD than to change this issue priority?

regards
Grzegorz Grzybek

@Tomas-Kraus
Copy link
Contributor Author

@glassfishrobot Commented
snajper said:
Well, not - the schema is defined in the JSR 222 spec, so this can only be addressed within MR.

@Tomas-Kraus
Copy link
Contributor Author

@glassfishrobot Commented
gzress said:
Well, right... And how to get the MR to be released?

@Tomas-Kraus
Copy link
Contributor Author

@glassfishrobot Commented
puce said:
Any news on this?

@Tomas-Kraus
Copy link
Contributor Author

@glassfishrobot Commented
puce said:
Will this be fixed in Java 8?

@Tomas-Kraus
Copy link
Contributor Author

@glassfishrobot Commented
yaroska said:
I'm not aware about the coming MR. So, unfortunately, no news and I don't think this would be fixed in JDK8.

@Tomas-Kraus
Copy link
Contributor Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JAXB-924

@Tomas-Kraus
Copy link
Contributor Author

@lukasj lukasj transferred this issue from eclipse-ee4j/jaxb-ri May 19, 2022
@lukasj lukasj added bug Something isn't working and removed ERR: Assignee labels May 19, 2022
@lukasj lukasj added the 4.1 label Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.1 bug Something isn't working Minor Priority
Projects
None yet
Development

No branches or pull requests

3 participants