Re: [xml] Schematron support?



On Wed, Jul 08, 2009 at 01:56:36PM +0200, Michael Ludwig wrote:
I just tried out the Schematron support in LibXML2.

# cat test.sch
<schema xmlns="http://purl.oclc.org/dsdl/schematron";>
  <title>Test</title>
  <ns prefix="asg" uri="http://as-guides.com/wev1"/>
  <pattern>
    <rule context="asg:Broadcast[ tip]">
      <assert test="asg:Image">Wir haben ein Bild.</assert>
    </rule>
  </pattern>
</schema>

# xmllint --version
xmllint: using libxml version 20702
   compiled with: [...] Schemas Schematron [...]

# xmllint --noout --schematron test.sch /tmp/t1.xml
/tmp/t1.xml validation generated an internal error

The doc t1.xml is alright; its document element matches
the Schematron <pattern>. What does the error message mean?

  Schematron support is not complete, sorry. It stopped when
I started to search for regression test suite and couldn't find
any.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]