<div dir="ltr">I think from a users perspective it wouldn't hurt to have one. It's like documentation if you know how it works it's not useful. However if you're just trying to learn how it works it can be helpful. :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 7, 2017 at 11:11 AM, David M. Lloyd <span dir="ltr"><<a href="mailto:david.lloyd@redhat.com" target="_blank">david.lloyd@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Something that has come up in a JIRA issue [1] is the question of<br>
whether the WildFly Client Configuration file should use a schema for<br>
its root element.<br>
<br>
The root of the "wildfly-client.xml" file is presently a single,<br>
namespace-less element named "configuration". The content of this<br>
element is a sequence of library-specific configuration, like this:<br>
<br>
<configuration><br>
<discovery xmlns="urn:wildfly-discovery:<wbr>1.0"><br>
<!-- content here --><br>
</discovery><br>
<jboss-ejb-client xmlns="urn:jboss:wildfly-<wbr>client-ejb:3.0"><br>
<!-- content here --><br>
</jboss-ejb-client><br>
<!-- etc. --><br>
<configuration><br>
<br>
The question is, should there be a schema for that root element? The<br>
entire schema would be something like:<br>
<br>
<xs:element name="configuration" type="configuration-type"/><br>
<br>
<xs:complexType name="configuration-type"><br>
<xs:any maxOccurs="unbounded" namespace="##other"/><br>
</xs:complexType><br>
<br>
Then you'd have to put the configuration namespace in as well:<br>
<br>
<configuration xmlns="urn:wildfly-client:1.0"<wbr>><br>
<discovery xmlns="urn:wildfly-discovery:<wbr>1.0"><br>
<!-- content here --><br>
</discovery><br>
<jboss-ejb-client xmlns="urn:jboss:wildfly-<wbr>client-ejb:3.0"><br>
<!-- content here --><br>
</jboss-ejb-client><br>
<!-- etc. --><br>
</configuration><br>
<br>
WDYT? Is it worth having a whole schema/namespace for a single element?<br>
<br>
[1] <a href="https://issues.jboss.org/browse/ELY-1098" rel="noreferrer" target="_blank">https://issues.jboss.org/<wbr>browse/ELY-1098</a><br>
<span class="HOEnZb"><font color="#888888">--<br>
- DML<br>
______________________________<wbr>_________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div>
</div>