Hi..! Can some one tell me why this query is failing ------------------------------------------------------------------------------------------------------ let $node := <facets> <facet-element> <facet-name datatype="xs:string">title</facet-name> <element ns="http://marklogic.com/ls" name="title"/> </facet-element> </facets> let $options := <options xmlns="http://marklogic.com/appservices/search"> { for $i in $node/facet-element return <constraint name="{$i/facet-name}" facet="true" > <range collation="http://marklogic.com/collation/" type="{$i/facet-name/@datatype}"> <facet-option>limit=10</facet-option> {$i/element} </range> </constraint> } <return-results>true</return-results> <return-facets>true</return-facets> </options> return $options ------------------------------------------------------------------------------------------------------ When I remove the namespace declaration "xmlns="http://marklogic.com/appservices/search"" from the options node I get the desired result, but when I have the namespace the query fails.
Thanks Pradeep Maddireddy _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
