I have a .xqy file that calls the getTeasers function in the common module:
default element namespace="http://www.w3.org/1999/xhtml" import module namespace common = "commonFunctions" at "../modules/commonFunctions.xqy" let $featureTeasers := common:getTeasers( $locale, "Feature", $pageName ) I then try to iterate over the results, but I get nothing back except xml. I'm pretty sure it is because the results are in a different namespace, but I can't find out how to access them in the correct namespace in my for loop. <div id="labs-featured"> <div id="labs-welcome"> <h1>{ common:getString($locale, $pageName, "welcome") }</h1> <p>{ common:getString($locale, $pageName, "description") }</p> </div> { for $teaser in $featureTeasers/teaser let $title as xs:string? := $teaser/title let $teaserText as xs:string? := $teaser/text let $imageName as xs:string? := $teaser/image let $url as xs:string? := $teaser/url order by xs:integer($teaser/@sequence) ascending return $title } </div> Can anyone help? Thanks Mindie ---------------------------------------------------------------------- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
