Hi Ingrid
I use XQuery to serve up my (x)html Xforms pages using XSLTForms as follows

1/  prevent the built in Betterform using
xquery version "3.0";
declare option exist:serialize "method=xhtml media-type=text/xml indent=yes process-xsl-pi=no";
let $attribute := request:set-attribute("betterform.filter.ignoreResponseBody", "true")

2/ prepare the xhtml  xform
let $form :=
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:xf="http://www.w3.org/2002/xforms"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:ev="http://www.w3.org/2001/xml-events"
etc .....

3/ set the processing instructions and the location of the stylesheet

let $xslt-pi := processing-instruction xml-stylesheet {'type="text/xsl" href=""'}
let $xslt-debug := processing-instruction xsltforms-options  {'debug="no"'}  

4/ output the xform preceded by the PI

return ($xslt-pi, $xslt-debug, $form)



Hope this helps

Cheers

Peter


-----Original Message-----
From: [email protected]
Sent: Tue, 23 Apr 2013 12:29:53 +0200
To: [email protected]
Subject: Re: [Xsltforms-support] using xsltforms inside eXist-db



Yes, I did something similar to what you showed in the screenshot and could GET config.xsl and transform.xsl manually.

However I noticed that on your screenshot the xhtml file is in the same directory as xsltforms.xsl and config.xsl.
No, they are not. With IE debugger:



In the eXist-db setting I could not put my xhtml file into the same directory (application) as xsltforms.xsl - I suppose it would work, if I could.
I am convince it should work even if they are not in the same folder.

-Alain

Smileys Preview
Get Free Smileys for Your IM & Email - Learn more at www.crawler.com/smileys
Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk and most webmails
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to