[xslt] XSLT patterns without transformations?
- From: Magnus Lie Hetland <magnus hetland org>
- To: xslt gnome org
- Subject: [xslt] XSLT patterns without transformations?
- Date: Mon, 14 Feb 2005 15:33:40 +0100
Hi!
I'm writing an application that's building document trees, and I need
to use XSLT patterns (or something similar) so the user can specify
various predicate that apply (or not) to any given node in the tree.
In other words: I have a document tree, a predicate (in the form of a
string), and a node, and I want to check whether the predicate (e.g.,
an XSLT pattern) is true for the given node.
After realising that the xpath and pattern support in libxml probably
wasn't what I was looking for (the patterns there are a bit too
restricted; i.e., they are XML Schema patterns, not XSLT patterns)
I've looked at the libxslt module pattern.c -- but I'm not quite sure
how to use it on its own... How do I create the required
xsltTransformContext when I don't have any transformations going on?
And... Which parts are actually public? (This may be a problem with my
installation, but I can find xsltMatchPattern() in the .h-file, but
not in the library itself, so I get linker problems if I try to use
it.)
Any help would, of course, be greatly appreciated.
Thanks,
- Magnus
--
Magnus Lie Hetland Fallen flower I see / Returning to its branch
http://hetland.org Ah! a butterfly. [Arakida Moritake]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]