Re: [xml] support for xslt functions in xmllint schematron?



On Tue, Oct 31, 2006 at 06:48:30PM -0500, Gregor J. Rothfuss wrote:
hi,

the schematron implementation in xmllint currently does not support xslt 
functions like generate-id():

xmlXPathCompOpEval: function generate-id not found

there are quite a few schematron files out there that make use of XSLT 
functions. this is not surprising since the first schematron 
implementation was in XSLT.

it would be nice if xmllint could make use of these functions via libxslt.

  I cannot make libxml2 depend on libxslt, sorry, not possible.

the latest schematron spec formalizes this and has the concept of 'query 
languages': http://www.schematron.com/iso/P9.html#T44

i guess supporting these functions in xmllint would be a stepping stone 
towards query language binding support.

  ???

should i file an enhancement bug?

  If schematron really depends on XSLT support (bad IMHO) then it need to be
removed from libxml2, and either made part of libxslt or another library.
Definitely not a small change, my punition again for attempting to implement
a spec which wasn't completely formalized (or for which the formal final
spec was not available to mere mortals)...
  Deadlock, as part of libxml2 this is not solvable, best way forward to really
implement that would be to start deprecating libxml2 Schematron implementation
and move it to another module. Probably not the best way to promote the spec.
And if there is really a hard XSLT dependancy then sticking to a stylesheet
based implementation (which should work with xsltproc) sounds the simplest.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/



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