xslt2xforms v. 0.7.6, trying to process input.xml using
Saxon (in OxygenXML's debugger), I get the error:
Ambiguous rule match for
/form[1]/xforms:trigger[1]/xforms:reset[1]
Matches both "*|text()" on line 225 of xform.xsl
and "node()" on line 229 of xform.xsl
While it is not necessarily an error to have ambiguous
template matches, it is definitely a potential source
of unintended consequences. As I read the stylesheet,
it looks like the first template (matching "*|text()")
will never be matched, since all element or text nodes
will also match the following template ("node()"), and
in the case of a conflict, the last template wins (or
the processor signals an error).
So if the "*|text()" template is not needed, it should
be removed. Or if it is intended to be used, it should
be given a high priority so that it will be used
instead of the "node()" template.
Regards,
Lars