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

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

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 

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.


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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