<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On May 20, 2012, at 19:45 , <a href="mailto:rm@tuxteam.de">rm@tuxteam.de</a> wrote:</div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">It's not too obscure - but I'm still not shure how to achive my goal.<br>I'm looking for a public api to generate nodes. So far I've found<br>(dom:create-text-node doc data) but that leaves me with two questions:<br>first, from within a xpath extension function there's no obvious way to<br>access the document being processed (I might be missing something here<br>but I _think_ the xpath api should provide more context).<br>Second: dom:create-... isn't really a good match for xpath since one<br>can't create some of the xpath node types (booleans, numbers etc.).<br><br>Somehow I feel this is more of a xpath api problem but maybe you<span class="Apple-converted-space"> </span><br>have some idea/input on this.<br></span></blockquote></div><br><div>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.</div></body></html>