Thanks that works. So, the * is saying any namespace.
From: [email protected] [mailto:[email protected]] On Behalf Of Rob Szkutak Sent: Thursday, December 3, 2015 9:44 AM To: MarkLogic Developer Discussion <[email protected]> Subject: Re: [MarkLogic Dev General] simple xQuery Web Application 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]<mailto:[email protected]> Cell +1.716.562.8464 www.marklogic.com<http://www.marklogic.com> ________________________________ From: [email protected]<mailto:[email protected]> [[email protected]] on behalf of Javier Lizarraga [[email protected]] Sent: Thursday, December 03, 2015 11:36 AM To: [email protected]<mailto:[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
