[relaxng-user] combining schemas

Bruce D'Arcus bdarcus at fastmail.fm
Tue Nov 25 19:53:33 ICT 2003


OK, I finally got it to work correctly, more or less.  Thanks all!

Here's an example fragment created using nxml mode:

     <extension xmlns:bn="http://refdb.sourceforge.net/biblio-notes-ns">
       <bn:biblio-notes>
	<bn:note user="darcusb">
	  <bn:para>Got it to <bn:emphasis>work!</bn:emphasis></bn:para>
	</bn:note>
       </bn:biblio-notes>
     </extension>

I just have a couple of questions remaining.

The first is about namespaces.  In the biblio-notes schema, I have the 
following namespace definition:

	default namespace  = "http://refdb.sourceforge.net/biblio-notes-ns"

The most obvious question is whether this is the correct way to specify 
the namespace in this circumstance.

Also, should I be requiring the namespace prefix here, when the 
namespace is defined on the extension element?  In this example, if 
remove the namespace prefix from the declaration and the included 
elements, I get an "unknown element" error on the extension element.

Finally, as I recall nxml mode normally automatically completes the 
namespace declaration.  it does not do so in this circumstance.  Is 
this likely a limitation of nxml, or a problem in my definition?

Bruce



More information about the relaxng-user mailing list