Closed GoogleCodeExporter closed 8 years ago
Fixed in r1996 and r1997.
George, please review and test. Change status to Verified if it's OK.
Original comment by jjc.jclark.com
on 20 Oct 2008 at 4:08
Hi James,
There is one issue when the overlap is no namespace, the error message is
attributes from namespace can occur more than once
in case of attributes:
<grammar
xmlns="http://relaxng.org/ns/structure/1.0"
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<element name="root">
<oneOrMore><attribute><anyName/></attribute></oneOrMore>
<oneOrMore><attribute><nsName/></attribute></oneOrMore>
</element>
</start>
</grammar>
and
elements from namespace can occur in more than one operand of "interleave"
in case of interleave:
<grammar
xmlns="http://relaxng.org/ns/structure/1.0"
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<element name="root">
<interleave>
<element><anyName/><text/></element>
<element><nsName/><text/></element>
</interleave>
</element>
</start>
</grammar>
A possible solution will be to put the namespace parameter inside quotes:
Index: src/com/thaiopensource/relaxng/impl/resources/Messages.properties
===================================================================
--- src/com/thaiopensource/relaxng/impl/resources/Messages.properties
(.../D:/users/george/workspace/jingOnGoogle/src/com/thaiopensource/relaxng/impl/
resources/Messages.properties)
(revision 1997)
+++ src/com/thaiopensource/relaxng/impl/resources/Messages.properties
(.../https://jing-trang.googlecode.com/svn/trunk/src/com/thaiopensource/relaxng/
impl/resources/Messages.properties)
(working copy)
@@ -60,10 +60,10 @@
start_contains_value=\"start\" contains \"value\"
duplicate_attribute=duplicate attribute
duplicate_attribute_name=duplicate attribute {0}
-duplicate_attribute_ns=attributes from namespace {0} can occur more than once
+duplicate_attribute_ns=attributes from namespace \"{0}\" can occur more than
once
interleave_element_overlap=overlapping element names in operands of \"interleave\"
interleave_element_overlap_name=the element {0} can occur in more than one operand
of \"interleave\"
-interleave_element_overlap_ns=elements from namespace {0} can occur in more
than one
operand of \"interleave\"
+interleave_element_overlap_ns=elements from namespace \"{0}\" can occur in
more than
one operand of \"interleave\"
list_contains_interleave=\"list\" contains \"interleave\"
interleave_text_overlap=both operands of \"interleave\" contain \"text\"
open_name_class_not_repeated=attribute using \"nsName\" or \"anyName\" must be in
\"oneOrMore\"
That will give
attributes from namespace "" can occur more than once
elements from namespace "" can occur in more than one operand of "interleave"
Apart from this issue everything works ok.
Thanks,
George
Original comment by georgebina76
on 21 Oct 2008 at 6:58
Thanks. Fixed in r2043.
Original comment by jjc.jclark.com
on 21 Oct 2008 at 5:18
Original comment by jjc.jclark.com
on 22 Oct 2008 at 5:34
Original comment by georgebina76
on 22 Oct 2008 at 5:39
Original comment by jjc.jclark.com
on 22 Oct 2008 at 5:47
Original issue reported on code.google.com by
georgebina76
on 20 Oct 2008 at 10:27