Hi, Try changing this line of code:
let $firstname := $employee//FIRST_NAME/text() To: let $firstname := $employee//*:FIRST_NAME/text() Best, Rob Rob Szkutak Associate Consultant MarkLogic Corporation [email protected] Cell +1.716.562.8464 www.marklogic.com<http://www.marklogic.com> ________________________________ From: [email protected] [[email protected]] on behalf of Javier Lizarraga [[email protected]] Sent: Thursday, December 03, 2015 11:36 AM To: [email protected] Subject: [MarkLogic Dev General] simple xQuery Web Application Hello All, I have cloned the MarkLogic World Leaders app and reconfigured it to point to my Employee’s MarkLogic database (ParProc). I implemented and tested a search query in the Query Console that returns the corresponding data elements (see QueryConsole.txt attachment). I wanted to include this search in the web application. However, I am not able to retrieve any values for display. It’s as if the for loop is not recognizing the node list. Within the index.xqy I wrote the results to the log and they look correct but I am not able to retrieve values for display. The $firstname remains empty (see modified index.xqy attachment). See searchResults.txt attachment. I would appreciate some guidance on what I might be missing. Thanks, Javier
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
