[Xsltforms-support] Using MarkLogic to generate the XForm from an XQuery
Brought to you by:
alain-couthures
From: Alex B. <rho...@ya...> - 2009-11-27 18:07:36
|
Hi, I'm wondering whether anyone has had any success getting ML to generate an XForm dynamically? I've seen the examples in the Wikibook for eXist (http://en.wikibooks.org/wiki/XRX/XSLTForms_and_eXist) and I found this in a MarkLogic forum (http://www.mail-archive.com/ge...@de.../msg02337.html) but as soon as I try to put in the XSLTForms PI, ML throws an error: XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected Lbrace_ in /create/, on line 3 [1.0-ml] Based on that forum posting so far, I've tried this: declare function common:generateXsltFormsPi(){ let $pi := "<?xml-stylesheet href='/xsltforms/xsltforms.xsl' type='text/xsl'?>" return (xdmp:unquote($pi)) } Has anyone achieved this before? |