[bv-dev] Namespace for XML descriptors
Hendrik Ebbers
hendrik.ebbers at me.com
Fri Aug 19 06:52:49 EDT 2016
Hi Gunnar,
I like the idea.
Cheers,
Hendrik
> Am 19.08.2016 um 12:29 schrieb Gunnar Morling <gunnar at hibernate.org>:
>
> Hi all,
>
> The XML descriptors in BV (validation.xml, constraint mapping XML files) use a jboss.org <http://jboss.org/> specific namespace as of 1.1. We should change that into something under jcp.org <http://jcp.org/> [1] which is what all other descriptors of Java EE techs do as of Java EE 7 (see Antonio Goncalves' blog post on this topic at [2]).
>
> What's rather unclear to me is why most of techs share the same namespace "http://xmlns.jcp.org/xml/ns/javaee <http://xmlns.jcp.org/xml/ns/javaee>", e.g. JSF, CDI and Servlet as per Antonio's post. I think having a specific names space for BV is more sensible (as done by JPA, too), not the least because BV isn't tied to EE.
>
> So I'd suggest to use
>
> * http://xmlns.jcp.org/xml/ns/validation <http://xmlns.jcp.org/xml/ns/validation>" (for validation.xml)
> * http://xmlns.jcp.org/xml/ns/validation/mapping <http://xmlns.jcp.org/xml/ns/validation/mapping>" (for constraint validation mapping files)
>
> Any thoughts?
>
> Thanks,
>
> --Gunnar
>
> [1] https://hibernate.atlassian.net/browse/BVAL-455 <https://hibernate.atlassian.net/browse/BVAL-455>
> [2] https://antoniogoncalves.org/2013/06/04/java-ee-7-deployment-descriptors/ <https://antoniogoncalves.org/2013/06/04/java-ee-7-deployment-descriptors/>
>
> _______________________________________________
> beanvalidation-dev mailing list
> beanvalidation-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/beanvalidation-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/beanvalidation-dev/attachments/20160819/7b804874/attachment.html
More information about the beanvalidation-dev
mailing list