After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 332340 - RelaxNG validation fails with warning : Unimplemented block at relaxng.c:10419
RelaxNG validation fails with warning : Unimplemented block at relaxng.c:10419
Status: RESOLVED DUPLICATE of bug 302836
Product: libxml2
Classification: Platform
Component: relaxng
git master
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2006-02-23 15:33 UTC by Laurent Simonneau
Modified: 2017-06-12 19:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
RNG schema. (8.03 KB, application/xml)
2006-02-23 15:34 UTC, Laurent Simonneau
Details
fixed-1.xml : This sample file generate a failure. (255 bytes, application/xml)
2006-02-23 15:35 UTC, Laurent Simonneau
Details
fixed-2.xml : This sample file generate a failure. (154 bytes, application/xml)
2006-02-23 15:36 UTC, Laurent Simonneau
Details
rel-1.xml : This sample file validation works fine. (125 bytes, application/xml)
2006-02-23 15:36 UTC, Laurent Simonneau
Details
rel-2.xml : This sample files validation works fine. (187 bytes, application/xml)
2006-02-23 15:37 UTC, Laurent Simonneau
Details

Description Laurent Simonneau 2006-02-23 15:33:46 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:
Comment 1 Laurent Simonneau 2006-02-23 15:34:33 UTC
Created attachment 60005 [details]
RNG schema.
Comment 2 Laurent Simonneau 2006-02-23 15:35:22 UTC
Created attachment 60006 [details]
fixed-1.xml : This sample file generate a failure.
Comment 3 Laurent Simonneau 2006-02-23 15:36:01 UTC
Created attachment 60007 [details]
fixed-2.xml : This sample file generate a failure.
Comment 4 Laurent Simonneau 2006-02-23 15:36:34 UTC
Created attachment 60008 [details]
rel-1.xml : This sample file validation works fine.
Comment 5 Laurent Simonneau 2006-02-23 15:37:10 UTC
Created attachment 60009 [details]
rel-2.xml : This sample files validation works fine.
Comment 6 Daniel Veillard 2006-10-13 16:53:56 UTC
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 ***