esgee85 / jing-trang

Automatically exported from code.google.com/p/jing-trang
Other
0 stars 0 forks source link

wrong grammar specification on the official rnc syntax website ? #94

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, 

I have read the rnc official syntax specification :
http://www.thaiopensource.com/relaxng/jing.html

Yet, I have seen a divergence between this grammar and the execution of
jing application.
Indeed, the grammar indicates that a attribute can contain another
attribute but jing can't do it.

Do you know if the grammar is wrong or not ?

Please, help me.

Original issue reported on code.google.com by sebtexd...@gmail.com on 30 Nov 2009 at 4:13

GoogleCodeExporter commented 8 years ago
Please supply a complete example where you believe jing is behaving incorrectly.

Original comment by jjc.jclark.com on 1 Dec 2009 at 1:23

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thank you for your answer.
Sorry for not replying quickly,

Actually, I think that jing has a good behavior but its grammar is not the one :
http://www.thaiopensource.com/relaxng/jing.html

Indeed, the two following lines are strange :
pattern   ::=   "element" nameClass "{" pattern "}"
| "attribute" nameClass "{" pattern "}"
...

When I use jing to verify a instance of relaxng, a attribute can't contain a
attribute and it is correct. Yet, the two lines on the grammar indicate the 
contrary.

So, I think that jing uses an other grammar.

Original comment by sebtexd...@gmail.com on 4 Dec 2009 at 7:56