Re: [Xsltforms-support] HTML preview option
Brought to you by:
alain-couthures
|
From: Winona S. <wsa...@gm...> - 2023-04-23 11:42:40
|
Thanks Alain,
I will see if I can figure it out.
-Winona
On Thu, Apr 20, 2023 at 11:53 AM Alain Couthures <
ala...@ag...> wrote:
> 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 <wsa...@gm...> 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 Xsl...@li...
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>
>
|