relax ng: root namespace

Status
Not open for further replies.

chris.danx

Usenet Archive
Joined
Aug 29, 2001
Messages
16
Reaction score
0
Hi,

I've been trying to get jing to, eh, work with the following snippet I found on the web...

<?xml version="1.0" encoding="utf-8"?>
<element name="patron"
xmnln="http://relaxng.org/ns/structure/1.0">
<interleave>
<element name="name"><text/></element>
<element name="id-num"><text/></element>
<zeroOrMore>
<element name="book">
<choice>
<attribute name="isbn"/>
<attribute name="title"/>
</choice>
</element>
</zeroOrMore>
</interleave>
</element>

but it gives

fatal: root element of schema must have a namespace

Why??? I don't understand. No matter what I try it doesn't work!

Chris
 

Bob Foster

Usenet Archive
Joined
Aug 14, 2002
Messages
220
Reaction score
0
It's because you didn't spell xmlns correctly.

Bob

"chris.danx" wrote:

Hi,

I've been trying to get jing to, eh, work with the following snippet I found on the web...

<?xml version="1.0" encoding="utf-8"?>
<element name="patron"
xmnln="http://relaxng.org/ns/structure/1.0">
<interleave>
<element name="name"><text/></element>
<element name="id-num"><text/></element>
<zeroOrMore>
...
 
Status
Not open for further replies.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,245
Members
248,133
Latest member
DujonT

Latest Threads

Top