Comments (6)
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.
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.
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.
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.
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.
Fine by me, will merge into master..
from jaxb-facets.
Related Issues (20)
- AnnotationLocation missing HOT 2
- compilation fails because of testutils pom HOT 1
- wsimport issue HOT 6
- Adding support for assertions HOT 3
- Support for JavaEE annotations HOT 8
- Using @Documentation annotation at field level causes @XmlSchemaType to be ignored HOT 2
- @Pattern annotation does not work nicely with @XmlID and @XmlIDREF HOT 6
- WARNING: Unable to get @MinOccurs annotation from type com.sun.xml.bind.v2.model.impl.TypeRefImpl@667de82c HOT 1
- Issue with @Facets and @XmlJavaTypeAdapter HOT 2
- mvn clean install with empty repository HOT 3
- Jaxb-Facets @MaxOccurs generated XML Schema validation not working HOT 2
- Which license HOT 4
- Spring boot 1.3.1 + jaxb-facets HOT 2
- Annotation generation HOT 4
- Any plans into getting facets into JDK's JAXB? HOT 5
- Preserve annotations during schema creation HOT 3
- Working example with cxf-xjc-plugin
- appear NullPointerException HOT 1
- java.lang.NoClassDefFoundError: com/sun/tools/javac/code/Type$ClassType HOT 3
- Pushing facets support upstream HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jaxb-facets.