Skip to content

Function script:invoke and according example not working #19

@cforney

Description

@cforney

Hello, and first of all, thank you for making this fantastic framework available to the XML community 🙏

After installing xslweb-ready-to-run-v4.2.0-windows-x64 I noticed that the example for script:invoke (script extension function) is not working.

To reproduce:

Obviously, the reason for the "404" is that this example is actually missing in examples/xsl/request-dispatcher.xsl.

But when I locally added the following template

<xsl:template name="script-example" match="/req:request[req:path = '/script.html']">
   <pipeline:pipeline>
     <pipeline:transformer name="script" xsl-path="script/script.xsl" log="true"/>
   </pipeline:pipeline>
</xsl:template>

it complains about an Error evaluating ((attr{id=...}, ...)).

I suppose this second error lies in the function itself, but unfortunately my knowledge of Java is so poor that further research from my side would not be useful.

My platform: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions