[MarkLogic Dev General] Convert results
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 ?
let $banner := $docs/entry/bannerText
let $banner := xs:normalizedString($docs/entry/bannerText)
give me the error.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the General