i have an index.html data where I included the template through:
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/page.html" data-template-at="content">
At the index html site I included a keyword search form, and the idea is when I click on the search button it should call an .xq file to request the search results:
<form method="GET" action="ksearch.xq">
When I submit the form, the ksearch.xq page opens, but even though I include the same template div as above:
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/page.html" data-template-at="content">
The ksearch.xq page does not have the template applied.
It seems that when I call an .xq file the template is not applied, but when I call a plain HTML file, the template is applied.
So the question is how can I use this template also in output of an .xq file?
Thanks in advance.