Here is what is in the footer.xqy file

xquery version "1.0-ml";
import module namespace xqmvc = "http://scholarsportal.info/xqmvc/core"; at
"../../system/xqmvc.xqy";
declare variable $data as map:map external;


    <div class="container">
        <div id="primary_nav">
                <ul>
                        <li><a href="http://www.houghtonmifflinbooks.com";> 
Home</a></li>
                        <li><a href="http://www.houghtonmifflinbooks.com/faq/";>|
FAQs</a></li>
                        <li><a 
href="http://www.houghtonmifflinbooks.com/site_map/";>|
Sitemap</a></li>
                </ul>
        </div>
        
        <img class="harcourt-logo"src="{ $xqmvc:resource-dir
}/images/harcourt-logo.png" alt="harcourt-logo" width="101" height="39" />
        
        <div id="legal_nav">
                <ul>
                <li><a href="http://www.hmhco.com/privacy-policy.html";>Privacy
Policy  </a></li>
                <li><a href="http://www.houghtonmifflinbooks.com/trademark/";>|
Trademark Information</a></li>
                <li><a href="http://www.hmhco.com/terms-and-conditions.html";>| 
Terms
&amp; Conditions of Use</a></li>
                </ul>
                <br/>
                <p><font color="black">For licensing inquiries, please contact
Damian Dale, </font><a href="mailto:[email protected]";><font
color="black">[email protected]</font></a></p>
                <p>Copyright {(:&copy; :)} 2011 Houghton Mifflin Harcourt 
Publishing
Company. All rights reserved.</p>

        </div>
       
   </div>




Best Regards,
Kashif Khan




On 3/26/12 12:40 PM, "John Snelson" <[email protected]> wrote:

>What does the code in footer.xqy look like?
>
>One bug fix that was made in 5.0-1 was to require quotes around
>attribute values in direct element constructor expressions - maybe you
>have unquoted attribute values in your program?
>
>John
>
>On 26/03/12 17:22, Khan, Kashif wrote:
>>
>>   We just upgraded to Marklogic server 5.0-3 and now I am getting this
>>   error for my application. Did anyone face this issue with their
>>   application?
>>
>>
>>   500 Internal Server Error
>>
>> XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error,
>> unexpected QName_, expecting EmptyTagClose_ or StartTagClose_
>> in /application/views/footer.xqy, at 16:31,
>> in xdmp:invoke("/application/views/footer.xqy", (fn:QName("", "data"),
>> map:map()), <options
>> 
>>xmlns="xdmp:eval"><isolation>different-transaction</isolation><prevent-de
>>adlocks>t...</options>)
>> [1.0-ml]
>> in /system/xqmvc.xqy, at 105:4,
>> in _view("/application/views/footer.xqy", ()) [1.0-ml]
>>     $view-file = "/application/views/footer.xqy"
>>     $pairs = ()
>> in /system/xqmvc.xqy, at 119:8,
>> in xqmvc:view("footer", ()) [1.0-ml]
>>     $view = "footer"
>>     $pairs = ()
>>     $view-file = "/application/views/footer.xqy"
>> in /application/controllers/word.xqy, at 216:12,
>> in word-controller:error() [1.0-ml]
>> in /system/error.xqy, at 9:7 [1.0-ml]
>>     $set-var = ()
>> Old Error
>>     &lt;error:error xsi:schemaLocation="http://marklogic.com/xdmp/error
>>     error.xsd" xmlns:error="http://marklogic.com/xdmp/error";
>>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
>>     &lt;error:code&gt;XDMP-UNEXPECTED&lt;/error:code&gt;
>>     &lt;error:name&gt;err:XPST0003&lt;/error:name&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;error:message&gt;Unexpected token&lt;/error:message&gt;
>>     &lt;error:format-string&gt;XDMP-UNEXPECTED: (err:XPST0003)
>>     Unexpected token syntax error, unexpected QName_, expecting
>>     EmptyTagClose_ or StartTagClose_&lt;/error:format-string&gt;
>>     &lt;error:retryable&gt;false&lt;/error:retryable&gt;
>>     &lt;error:expr&gt; &lt;/error:expr&gt; &lt;error:data&gt;
>>     &lt;error:datum&gt;syntax error, unexpected QName_, expecting
>>     EmptyTagClose_ or StartTagClose_&lt;/error:datum&gt;
>>     &lt;error:datum/&gt; &lt;/error:data&gt; &lt;error:stack&gt;
>>     &lt;error:frame&gt;
>>     &lt;error:uri&gt;/application/views/footer.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;16&lt;/error:line&gt;
>>     &lt;error:column&gt;31&lt;/error:column&gt;
>>     &lt;error:operation&gt;xdmp:invoke("/application/views/footer.xqy",
>>     (fn:QName("", "data"), map:map()), &amp;lt;options
>>     
>>xmlns="xdmp:eval"&amp;gt;&amp;lt;isolation&amp;gt;different-transaction&a
>>mp;lt;/isolation&amp;gt;&amp;lt;prevent-deadlocks&amp;gt;t...&amp;lt;/opt
>>ions&amp;gt;)&lt;/error:operation&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/system/xqmvc.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;105&lt;/error:line&gt;
>>     &lt;error:column&gt;4&lt;/error:column&gt;
>>     &lt;error:operation&gt;_view("/application/views/footer.xqy",
>>     ())&lt;/error:operation&gt; &lt;error:variables&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;view-file&lt;/error:name
>>&gt;
>>     
>>&lt;error:value&gt;"/application/views/footer.xqy"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;pairs&lt;/error:name&gt;
>>     &lt;error:value&gt;()&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;/error:variables&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/system/xqmvc.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;119&lt;/error:line&gt;
>>     &lt;error:column&gt;8&lt;/error:column&gt;
>>     &lt;error:operation&gt;xqmvc:view("footer",
>>     ())&lt;/error:operation&gt; &lt;error:variables&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;view&lt;/error:name&gt;
>>     &lt;error:value&gt;"footer"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;pairs&lt;/error:name&gt;
>>     &lt;error:value&gt;()&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;view-file&lt;/error:name
>>&gt;
>>     
>>&lt;error:value&gt;"/application/views/footer.xqy"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;/error:variables&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/application/controllers/word.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;121&lt;/error:line&gt;
>>     &lt;error:column&gt;18&lt;/error:column&gt;
>>     &lt;error:operation&gt;search()&lt;/error:operation&gt;
>>     &lt;error:variables&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/controller"&gt;id-query&lt;/error
>>:name&gt;
>>     &lt;error:value&gt;()&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/controller"&gt;word-query&lt;/err
>>or:name&gt;
>>     &lt;error:value&gt;()&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/controller"&gt;word-def&lt;/error
>>:name&gt;
>>     &lt;error:value&gt;()&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/controller"&gt;page-title&lt;/err
>>or:name&gt;
>>     &lt;error:value&gt;"American Heritage Dictionary -
>>     Search"&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;/error:variables&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/application/controllers/word.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;30&lt;/error:line&gt;
>>     &lt;error:column&gt;4&lt;/error:column&gt;
>>     &lt;error:operation&gt;xqmvc-ctrlr:index()&lt;/error:operation&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:line&gt;1&lt;/error:line&gt;
>>     &lt;error:column&gt;123&lt;/error:column&gt;
>>     &lt;error:operation&gt;xdmp:eval("import module namespace
>>     xqmvc-ctrlr = &amp;amp;quot;http://scholarsporta...";, (),
>>     &amp;lt;options
>>     
>>xmlns="xdmp:eval"&amp;gt;&amp;lt;isolation&amp;gt;different-transaction&a
>>mp;lt;/isolation&amp;gt;&amp;lt;prevent-deadlocks&amp;gt;t...&amp;lt;/opt
>>ions&amp;gt;)&lt;/error:operation&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/system/xqmvc.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;63&lt;/error:line&gt;
>>     &lt;error:column&gt;12&lt;/error:column&gt;
>>     
>>&lt;error:operation&gt;_controller("/application/controllers/word.xqy",
>>     "index")&lt;/error:operation&gt; &lt;error:variables&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;controller-file&lt;/erro
>>r:name&gt;
>>     
>>&lt;error:value&gt;"/application/controllers/word.xqy"&lt;/error:value&gt
>>;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;function&lt;/error:name&;
>>gt;
>>     &lt;error:value&gt;"index"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;import-declaration&lt;/e
>>rror:name&gt;
>>     &lt;error:value&gt;"import module namespace xqmvc-ctrlr =
>>     &amp;amp;quot;http://scholarsporta..."&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;function-call&lt;/error:
>>name&gt;
>>     &lt;error:value&gt;"xqmvc-ctrlr:index()"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;/error:variables&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/system/xqmvc.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;77&lt;/error:line&gt;
>>     &lt;error:column&gt;8&lt;/error:column&gt;
>>     &lt;error:operation&gt;xqmvc:controller("word",
>>     "index")&lt;/error:operation&gt; &lt;error:variables&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;controller&lt;/error:nam
>>e&gt;
>>     &lt;error:value&gt;"word"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;function&lt;/error:name&;
>>gt;
>>     &lt;error:value&gt;"index"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;controller-file&lt;/erro
>>r:name&gt;
>>     
>>&lt;error:value&gt;"/application/controllers/word.xqy"&lt;/error:value&gt
>>;
>>     &lt;/error:variable&gt; &lt;/error:variables&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/&lt;/error:uri&gt;
>>     &lt;error:line&gt;34&lt;/error:line&gt;
>>     &lt;error:column&gt;8&lt;/error:column&gt; &lt;error:variables&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     xmlns=""&gt;controller&lt;/error:name&gt;
>>     &lt;error:value&gt;"word"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     xmlns=""&gt;function&lt;/error:name&gt;
>>     &lt;error:value&gt;"index"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     xmlns=""&gt;plugin&lt;/error:name&gt;
>>     &lt;error:value&gt;""&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     xmlns=""&gt;log&lt;/error:name&gt;
>>     &lt;error:value&gt;()&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;/error:variables&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;/error:stack&gt; &lt;/error:error&gt;
>>
>> Best Regards,
>>
>> Kashif Khan
>>
>> *
>> *
>>
>
>
>--
>John Snelson, Lead Engineer                    http://twitter.com/jpcs
>MarkLogic Corporation                         http://www.marklogic.com
>_______________________________________________
>General mailing list
>[email protected]
>http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to