Hi,
I am new to XSLTForms and I am not able to generate XForms from a XQuery, the
eXist db complains with the following error code :
2010-12-21 22:52:42,561 [P1-10] DEBUG (XQueryServlet.java [process]:430) -
org.exist.xquery.XPathException: err:XPST0003 in line 18, column 7: unexpected
token: xmlns
Although I have seen this problem raised in previous discussions (1) : I am not
able to make it work with my configuration which is the following one :
OS : Mac OS 10.5.8
eXist DB : 1.4.0 (build 20091111)
It seems that the following line has no effect on my setup :
declare option exist:serialize "method=xhtml media-type=text/xml
process-xsl-pi=no";
What could I have missed ?
My XQuery file :
xquery version "1.0";
(: data_model_update.xql :)
declare namespace xmldb="http://exist-db.org/xquery/xmldb";
declare namespace request="http://exist-db.org/xquery/request";
declare option exist:serialize "method=xhtml media-type=text/xml
process-xsl-pi=no";
let $table := request:get-data()
let $fichier := concat(data($table/@name),'.xml')
return
(
<?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<head>
<title>Table</title>
<xf:model>
<xf:instance id="moninstance" src="../rest/db/{$fichier}">
</xf:instance>
(1)
http://exist.2174344.n4.nabble.com/Getting-XSLTForms-to-work-with-dynamic-XForms-td2192959.html
--
Sylvain PERCHAUD
Tel : +33 643 181 482
From: COUTHURES A. <ala...@ag...> - 2010-12-23 07:17:13
Hello,
I have added statistics about execution times in the F1 help box.
It is indeed very interesting for locating expensive XPath expressions:
* improvements/bugs can then be studied
* new functions can be added
Thank you for your feedbacks!
-Alain