我已經在那裏我包括通過模板index.html的數據的HTML模板:存在,但DB包括.xq數據
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/page.html" data-template-at="content">
在指數HTML網站,我包括關鍵字搜索的形式,這種想法是當我點擊搜索按鈕,它應該叫.xq文件請求的搜索結果:
<form method="GET" action="ksearch.xq">
當我提交表單,打開ksearch.xq頁面,但即使我有相同的模板作爲股利以上:
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/page.html" data-template-at="content">
ksearch.xq頁面沒有應用模板。
看來,當我調用一個.xq文件模板不適用,但是當我調用一個純HTML文件時,該模板被應用。
所以問題是如何使用這個模板也輸出一個.xq文件?
在此先感謝。