Re: Saxon-JS 2 user input events not handled

Martynas Jusevičius <martynas-tyFqBaoSXPC1Z/[email protected]>
Newsgroups gmane.text.xml.saxon.help
Message-ID <CAE35VmzEx8Eb+M+dc_+0Gn=5PtbSkOhH517+NKz2WHT5d+7JJA@mail.gmail.com>
So here's attempt to reproduce: https://namedgraph.github.io/saxon-js2-test/

The CSS will look broken, but you should see a TEST button which has
an onclick handler in client.xsl. It should print "TEST" into the
console, but nothing happens.

Source code: https://github.com/namedgraph/saxon-js2-test/tree/gh-pages

Now I've noticed that the HTML specifies 4.01 strict DTD -- could this
be an issue?

On Wed, Aug 26, 2020 at 11:15 PM Martynas Jusevičius
<[email protected]> wrote:
>
> Okay, I'll try to make a repro tomorrow.
>
> On Wed, Aug 26, 2020 at 11:14 PM Michael Kay <[email protected]> wrote:
> >
> > Any chance of producing a cut-down repro that we can actually run to see if we can reproduce the problem?
> >
> > We may also need to see how you are invoking the transformation from the HTML page.
> >
> > Michael Kay
> > Saxonica
> >
> > On 26 Aug 2020, at 20:59, Martynas Jusevičius <[email protected]> wrote:
> >
> > Hi,
> >
> > I've upgraded a Saxon-CE stylesheet to work under Saxon-JS 2.
> >
> > The templates initiated by the initialTemplate work fine.
> >
> > However the templates handling user events don't seem to work anymore. Examples:
> >
> >    <xsl:template match="input[@id = 'uri']" mode="ixsl:onkeyup" priority="1">
> >
> >    <xsl:template match="*[@id = 'container-pane']/div/ul[@class =
> > 'nav nav-tabs']/li/a" mode="ixsl:onclick">
> >
> > I've put <xsl:message> in them but I cannot get any output in the
> > console even though I've turned up the logLevel to 10.
> >
> > Stylesheet source:
> > https://github.com/AtomGraph/LinkedDataHub/blob/rf-saxon-js2/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client.xsl#L1294
> >
> >
> > Martynas
> >
> >
> > _______________________________________________
> > saxon-help mailing list archived at http://saxon.markmail.org/
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/saxon-help
> >
> >
> > _______________________________________________
> > saxon-help mailing list archived at http://saxon.markmail.org/
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/saxon-help


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.