[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Sequence from String-Literal

Toar Imanuel toar.imanuel at gmail.com
Fri May 11 10:26:13 PDT 2007


  Sequence from String-Literal
Is util:eval the function that you are looking for?

let $i := "<b><a>1</a></b>"
return util:eval($i)

More details on eXist function documentation...

Cheers

On 5/11/07, http://x-query.com/mailman/listinfo/talk <http://x-query.com/mailman/listinfo/talk> wrote:
>
> Hi,
>
> thanks for the saxon parse() advice. But i need an eXist solution:
>
> Within the eval function,i have the same problem, that exist disallows
> to bind a string literatl to a variable, which is treated like a node
> sequence. I allways get the error, that eXist is not able to cast the
> xs:string to a sequence.
>
> I solved the problem by querying first the whole document and than
> proceed the query locally with saxon. But, this is quiet circumstantial,
> i think. It works, but this is not the best way.
>
> Can someone display some code, how to cast a string literal into a node
> sequence for eXist? I would be grateful.
>
> Berkley DB XML solved this, by passing variables as a XMLValue type to
> the query processor. IMHO, eXist had to implement equal mechanisms as
> soon as possible.
>
> Thx
> mfw
> _______________________________________________
> http://x-query.com/mailman/listinfo/talk
> http://x-query.com/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20070511/3ec83ba1/attachment.htm


Purchase Stylus Studio Online Today!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.