[Mono-bugs] [Bug 617264] New: RelaxNG validator fails to load patterns
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jun 24 18:05:56 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=617264
http://bugzilla.novell.com/show_bug.cgi?id=617264#c0
Summary: RelaxNG validator fails to load patterns
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: i686
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: guillaumeradde at hotmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Using Commons.Xml.Relaxng
Trying to load a relaxng schema using the following code:
//Begin
RelaxngPattern p = null;
using(XmlTextReader schema = new XmlTextReader("MySchema.rng"))
{
p = RelaxngPattern.Read(schema);
p.Compile();
}
//End
I get the following exception:
Commons.Xml.Relaxng.RelaxngException : Expected EndElement but found Element.
Here is the content of the relaxng schema I'm trying to load:
<?xml version="1.0" encoding="UTF-8"?>
<rng:grammar xmlns:rng="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<rng:define name="Timestamp">
<rng:data type="string">
<rng:param
name="pattern">([1-9]\d\d\d)-(0[1-9]|1[0-2])-(0[1-9]|[1-3][0-9])(T([0][0-9]|[1][0-9]|[2][0-4]):[0-5][0-9](:[0-5][0-9])?)?</rng:param>
</rng:data>
</rng:define>
</rng:grammar>
The same schema works fine with Jing.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list