1 Reply Latest reply: Apr 19, 2011 2:42 PM by Aslak Knutsen RSS

XML namespace locations for arquillian.xml

Dan Allen Master

The XML structure for arquillian.xml changed in 1.0.0.Alpha5. It's currently:

 

<?xml version="1.0" encoding="UTF-8"?>
<arquillian xmlns="http://www.jboss.org/arquillian-1.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="
      http://www.jboss.org/arquillian-1.0
      http://www.jboss.org/schema/arquillian/arquillian-1.0.xsd">
</arquillian>

 

Aslak has suggested that this isn't quite right. We'd like to get this right for the next release, so let's discuss.

 

For the namespace to be useful as to the location of XSD it should be fixed, such as:


http://www.jboss.org/schema/arquillian

 

But the "schema" path seems less than elegant. I also don't like the use of "www" as it's just noise. Here are some alternatives:

 

  1. http://arquillian.org (yes, we own this domain now, thanks to bob)
  2. http://arquillian.jboss.org
  3. http://jboss.org/arquillian

 

We could also build on any of these (using arquillian.org as an example) to make a dedicated schema URL:

 

  1. http://arquillian.org/xml/ns/arquillian (consistent with Java EE schemas)
  2. http://arquillian.org/xsd/arquillian (consistent with Maven)

 

I'm partial to #2 in the second list for these two reasons:

 

It removes the association from jboss.org, which fits best when arquillian is used in a product (no need to change jboss.org to jboss.com, for example).

It opens the door for different root XML elements (perhaps we decide to split them out in the future or we need another configuration format. We aren't in the way then).

 

The result would be:

 

<?xml version="1.0" encoding="UTF-8"?>
<arquillian xmlns="http://arquillian.org/xsd/arquillian"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="
      http://arquillian.org/xsd/arquillian
      http://arquillian.org/xsd/arquillian-1.0.xsd">
</arquillian>

 

WDYT?