[relaxng-user] nrl error reporting.

David.Pawson at rnib.org.uk David.Pawson at rnib.org.uk
Fri Jan 30 14:18:29 ICT 2004

Trying to use nrl.

I'm getting an error report of 

>atom.xml:64: error: element "div" from namespace 
"http://www.w3.org/1999/xhtml" not allowed in this context

Great... except there's no information as to which validation
step its reporting from.
The file is OK against the main schema with jing.
I have <anyName/> in use,
within the default ns, so I'd have thought I could at
least catch xhtml content.

the instance is along the lines

        <content mode="xml" type="text/xhtml">
where everything above xhtml:div is in the ns http://purl.org/atom/ns#.

The rules file reads:

<rules xmlns="http://www.thaiopensource.com/validate/nrl"

  <mode name="atom">
    <namespace ns="http://purl.org/atom/ns#">
      <validate schema="atom3.rnc"
      <validate schema="schematronatom.xml" 
	<option name="phase"

  <mode name="xhtml">
    <namespace ns="http://www.w3.org/1999/xhtml">

Regards DaveP.

**** snip here *****


NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged. If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system. 

RNIB endeavours to ensure that emails and any attachments generated by 
its staff are free from viruses or other contaminants. However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments. 

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent 
those of RNIB. 

RNIB Registered Charity Number: 226227 

Website: http://www.rnib.org.uk 

More information about the relaxng-user mailing list