[xuriella-devel] Question concerning custom xpath functions returning node sets

Raymond Wiker rwiker at gmail.com
Sun May 20 17:47:27 UTC 2012


On May 20, 2012, at 19:45 , rm at tuxteam.de wrote:
> It's not too obscure - but I'm still not shure how to achive my goal.
> I'm looking for a public api to generate nodes. So far I've found
> (dom:create-text-node  doc data) but that leaves me with two questions:
> first, from within a xpath extension function there's no obvious way to
> access the document being processed (I might be missing something here
> but I _think_ the xpath api should provide more context).
> Second: dom:create-... isn't really a good match for xpath since one
> can't create some of the xpath node types (booleans, numbers etc.).
> 
> Somehow I feel this is more of a xpath api problem but maybe you 
> have some idea/input on this.

I'm not 100% sure, but the function you're looking for may be cxml-stp:make-text... possibly in conjunction with xpath:make-node-set.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/xuriella-devel/attachments/20120520/92de3f10/attachment.html>


More information about the xuriella-devel mailing list