Hi there,

I have a question about the default namespace
attribute ns.
Is this inherited when using define?

I created the following test, first a simple xml file 
(I reduced it so it only made sense for the example)


<?xml version="1.0"?>
<test>
  <!-- empty -->
</test>

I created two rng files for which I thought they are the same.
Only the first validates oke (I am using jing).

<?xml version="1.0"?>
<grammar ns="http://www.namespace.org";
         xmlns="http://relaxng.org/ns/structure/1.0";>
<start ns="">
  <element name="test">
    <empty/>
  </element>
</start>
</grammar>

<?xml version="1.0"?>
<grammar ns="http://www.namespace.org";
         xmlns="http://relaxng.org/ns/structure/1.0";>
<start ns="">
  <ref name="start-test"/>
</start>
<define name="start-test">
  <element name="test">
    <empty/>
  </element>
</define>
</grammar>

I thought that when replacing the ref element with the 
define content shoud create the same relax-ng schema
or did I forget something?

Reply via email to