Hi all,
I was just wondering if there was anyone who ever tried to test match patterns
in Xquery or MarkLogic? If not, does anyone have an idea? I don't really need
this functionality, it is more out of interest whether it would be possible.
One solution I can think of, is just prepending // in front of the pattern (if
it is relative), execute the pattern and ask MarkLogic whether the resulting
nodeset contains the node to which I am testing the pattern. So basically it
would become something like: xdmp:value(concat('//', $match-pattern, ' =
$current-node')). I guess it will work, but will default indexing of MarkLogic
make it perform reasonably?
Kind regards,
Geert
Drs. G.P.H. Josten
Consultant
http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit
bericht kunnen geen rechten worden ontleend.
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general