Hi Winona,
 
Because the HTTP request is processed with XMLHttpRequest, the _javascript_ part of XSLTForms is looking at the response for a possible processing instruction and an XSLT stylesheet to be applied.
 
I always use the browser debugger to precisely look at responses and, eventually, to set a breakpoint.
 
In this case, it would start with one at "resp = XsltForms_browser.transformText(resp, xslhref, false);".
 
Can you try this?
 
--Alain
Le 19/04/2023 01:28 CEST, Winona Salesky <wsale...@gmail.com> a écrit :
 
 
Hi All, 
I am building a preview HTML page for my form by POSTing my data to an xquery, which runs the XML through an XSLT which outputs in a new window using the following submit: 

<xf:submission id="s-view-html" ref="instance('i-rec')" show="new" replace="all" instance="i-submission" method="post" action="services/submit.xql?type=previewHTML"/>

 

This works almost as expected, except, my HTML comes back slightly mangled. By that I mean, some divs are nested in other sibling divs. (I can provide the screen shots if needed.) This XSLT is used by my main website to output HTML, so I have something to compare it to, and the version run through the form is coming out incorrectly. I assume this has something to do with the output being run through the XSLTforms processor, preprocessing my returned HTML. Is there any way I can turn that off just for this view, so it does not touch the returned HTML file?
Thanks for the help, 
-Winona
_______________________________________________ Xsltforms-support mailing list Xsltforms-support@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xsltforms-support
_______________________________________________
Xsltforms-support mailing list
Xsltforms-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to