Is util:eval the function that you are looking for?<br><br>let $i := &quot;&lt;b&gt;&lt;a&gt;1&lt;/a&gt;&lt;/b&gt;&quot;<br>return util:eval($i)<br><br>More details on eXist function documentation...<br><br>Cheers<br><br><div>
<span class="gmail_quote">On 5/11/07, <b class="gmail_sendername"><a href="mailto:florianwendland@freenet.de">florianwendland@freenet.de</a></b> &lt;<a href="mailto:florianwendland@freenet.de">florianwendland@freenet.de</a>
&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>thanks for the saxon parse() advice. But i need an eXist solution:
<br><br>Within the eval function,i have the same problem, that exist disallows<br>to bind a string literatl to a variable, which is treated like a node<br>sequence. I allways get the error, that eXist is not able to cast the
<br>xs:string to a sequence.<br><br>I solved the problem by querying first the whole document and than<br>proceed the query locally with saxon. But, this is quiet circumstantial,<br>i think. It works, but this is not the best way.
<br><br>Can someone display some code, how to cast a string literal into a node<br>sequence for eXist? I would be grateful.<br><br>Berkley DB XML solved this, by passing variables as a XMLValue type to<br>the query processor. IMHO, eXist had to implement equal mechanisms as
<br>soon as possible.<br><br>Thx<br>mfw<br>_______________________________________________<br><a href="mailto:talk@x-query.com">talk@x-query.com</a><br><a href="http://x-query.com/mailman/listinfo/talk">http://x-query.com/mailman/listinfo/talk
</a><br></blockquote></div><br>