[weld-dev] Supporting namespaces in Java EE config files (non-portable feature for JBoss AS)

Pete Muir pmuir at redhat.com
Wed Nov 25 12:52:42 EST 2009


On 25 Nov 2009, at 17:43, Dan Allen wrote:

> 
> 
> 
> While I understand the advantage that it would reduce the number of
> config files, I do not think it would be a good idea to put Seam related
> config XML elements into standard JEE config files such as web.xml. Why?
> Because then users would no longer be able to validate these config
> files using an XML schema.
> 
> You can still validate an XML file against XML schema as long as the schema has an <xs:any/> element. This element tells the schema to worry about it's own nodes and ignore any it doesn't recognize because they are in a different namespace. This is the whole idea of XML.

Right, namespaces (something that Java EE missed the boat on), solve this exact problem :-)


More information about the weld-dev mailing list