Giter Club home page Giter Club logo

Comments (6)

pellcorp avatar pellcorp commented on July 22, 2024

I can see in the standard that it is supposed to support non namespaced attributes.

http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#cAnnotations

But still it breaks Eclipse and CXF, so probably most java apps are not going to work well with this particular feature either, as CXF uses JAXP java validator that is in the JDK.

Wondering if we can remove this feature?

from jaxb-facets.

pellcorp avatar pellcorp commented on July 22, 2024

I have done some more testing and it seems that in the case of jaxp validation annotations can have attributes, but they must have a namespace prefix. I am adding test cases to demonstrate this and changed the @Attribute so that the namespace is required.

from jaxb-facets.

pellcorp avatar pellcorp commented on July 22, 2024

I have created a branch in my repo with some additional changes around this.

https://github.com/pellcorp/jaxb-facets/tree/pellcorp-28jun

from jaxb-facets.

whummer avatar whummer commented on July 22, 2024

I believe that default-namespace attributes are a convenient feature that users will like to have. We could revert to the previous version of @Attribute with default namespace "", but leave the tests with explicit namespaces, as implemented in your changes...?

from jaxb-facets.

pellcorp avatar pellcorp commented on July 22, 2024

But the fact the jaxp validation fails suggests default name space is not
even legal for jaxb anyway which is what this is all about.

I say only support what jaxp considers valid
On 04/07/2013 6:45 PM, "whummer" [email protected] wrote:

I believe that default-namespace attributes are a convenient feature that
users will like to have. We could revert to the previous version of
@Attribute https://github.com/Attribute with default namespace "", but
leave the tests with explicit namespaces, as implemented in your changes...?


Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-20465730
.

from jaxb-facets.

whummer avatar whummer commented on July 22, 2024

Fine by me, will merge into master..

from jaxb-facets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.