GNOME Bugzilla – Bug 332340
RelaxNG validation fails with warning : Unimplemented block at relaxng.c:10419
Last modified: 2017-06-12 19:05:55 UTC
Steps to reproduce: I want to describe fixed or relative dates in XML, like "2006/02/23 12:00:00", or "yesterday at 12:00:00" or "there is 1 month and 2 weeks, the monday at midnight". I wrote a RNG schema (joined to this mail with a lot of comments and miscellaneous xml files that should be validated by this schema) to describe these dates. See the RNG schema comments for more details on this XML description. libxml2 fails to validate some XML files using this schema. Date begining with a relative element works fine (rel-*.xml sample files) but XML files starting with a fixed date component (fixed-*.xml files) fails with the following error : Unimplemented block at relaxng.c:10419 Element Date has extra content: year Stack trace: Other information:
Created attachment 60005 [details] RNG schema.
Created attachment 60006 [details] fixed-1.xml : This sample file generate a failure.
Created attachment 60007 [details] fixed-2.xml : This sample file generate a failure.
Created attachment 60008 [details] rel-1.xml : This sample file validation works fine.
Created attachment 60009 [details] rel-2.xml : This sample files validation works fine.
Seems this was a duplicate of #302836 that I fixed today: paphio:~/XML -> xmllint --relaxng ../332340.rng ../332340.xml <?xml version="1.0" encoding="utf-8"?> <Date> <year type="fixed">2005</year> <month type="fixed">12</month> <day type="fixed">10</day> <hour type="fixed">0</hour> <minute type="fixed">0</minute> <second type="fixed">0</second> </Date> ../332340.xml validates paphio:~/XML -> and paphio:~/XML -> xmllint --relaxng ../332340.rng ../332340-2.xml <?xml version="1.0" encoding="utf-8"?> <Date> <hour type="fixed">1</hour> <minute type="fixed">0</minute> <second type="fixed">0</second> </Date> ../332340-2.xml validates paphio:~/XML -> so this seems fixed in CVS, thanks ! Daniel *** This bug has been marked as a duplicate of 302836 ***