Re: combining schemas

"Bruce D'Arcus" <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.