Matching with namespaces in SaxonJS / NodeJS
Using SaxonJS and invoking from the node-js CL, I am finding that namespaces are not lining up as expected.
An XSLT is attached. It can be run on itself. It shows two key declarations, both of which should work, but only one does. The one that does not work is relying on an xpath-default-namespace setting for matching. The one that works uses an explicit namespace prefix (matching an element with an unprefixed name in the input document). Plain template matches work fine with the xpath-default-namespace setting.
Updated by Michael Kay over 3 years ago
- Status changed from In Progress to Resolved
- Assignee set to Michael Kay
- Applies to JS Branch 2.0 added
- Fix Committed on JS Branch 2.0 added
Fixed. In the compiler module key.xsl, match pattern with
match="xsl:key", pick up the
$xpath-default-namespace tunnel parameter and add the value to the generated
Please register to edit this issue