Hi Kristian,

could you please provide us with some self-contained example code?

Thanks in advance,
Christian



On Tue, Mar 3, 2015 at 11:44 AM, Kristian Kankainen
<[email protected]> wrote:
> Hello!
>
> I try to transform XForms with XSLTforms with the xslt module in BaseX but
> fail. I use the examples given by XSLTForms which work in the browser.
>
> My xslt:processor() gives 'Java' and xslt:version() gives '1.0'.
>
> The error message I get is:
>
> type Status report
>
> message Stopped at
> /usr/share/tomcat/webapps/BaseX80-20150207.113013/hans.xq, 242/23:
> [bxerr:BXSL0001] ERROR: 'Could not compile stylesheet' FATAL ERROR: 'Error
> checking type of the expression
> 'FilterParentPath(variable-ref(profiler0/result-tree), step("child", 1))'.'
> :Error checking type of the expression
> 'FilterParentPath(variable-ref(profiler0/result-tree), step("child", 1))'.
> Stack Trace: - /usr/share/tomcat/webapps/BaseX80-20150207.113013/hans.xq,
> 165/10
>
> description The request sent by the client was syntactically incorrect.
>
>
> My XQuery looks like this:
> declare
>   %rest:path("hans/xforms")
>   %rest:GET
>   %output:method("text")
> function hans:xforms() {
>
>   let $page := <html
>   xmlns="http://www.w3.org/1999/xhtml";
>   xmlns:xf="http://www.w3.org/2002/xforms";
>   >
>   <head>
>     <title>Many to one</title>
>     <xf:model>
>          ... snip ...
>   </html>
>
> return xslt:transform($page, 'static/xsltforms/xsltforms/xsltforms.xsl')
> };
>
> The only difference between the input given in the function and the one
> given at
> http://www.agencexml.com/xsltforms/incremental.xml
> is the removal of two processing instruments:
>
> <?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?>
> <?xsltforms-options debug="yes"?>
>
>
> What could be the source of this error? How should I continue debugging
> this?
>
> Best wishes
> Kristian Kankainen

Reply via email to