[MarkLogic Dev General] Convert results
Darin McBeath
ddmcbeath at yahoo.com
Thu May 21 06:33:02 PDT 2009
Is there a reason you don't want to use the fn:normalize-space() function?
________________________________
From: Tony Mariella <ajmariella at hotmail.com>
To: general at developer.marklogic.com
Sent: Thursday, May 21, 2009 9:26:49 AM
Subject: [MarkLogic Dev General] Convert results
I have a ML Query that gives me results as xs:string
I would like to use xs:normalizedString to strip out all the carriage returns and spaces
from the result. I keep getting Invalid cast error.
Any ideas ?
query...
let $banner := $docs/entry/bannerText
...
let $banner := xs:normalizedString($docs/entry/bannerText)
give me the error.
Tony Mariella
Raytheon Company
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20090521/f1266a42/attachment.html
More information about the General
mailing list