intersect doesn’t seem to work correctly for attributes
While developping XPathle, I stumbled across SaxonJS behaviour that was different than in the Java version.
Consider the commented-out code at https://github.com/gimsieke/xpathle/blob/main/xpathle-lib.xsl#L184
If you use the commented-out lines that contain
intersect instead of the preceding two
xsl:when s and recompile the SEF and use the example “XSLT 2.0 for postprocessing a CSS parse tree” and enter, for example,
//@as as your guess, the as attributes will not be highlighted.
Comparing generated IDs fixed it for me, and this can immediately be tested on https://gimsieke.github.io/xpathle/
This issue hit me with the v1.2 SEF that Saxon EE 9.9 generated, and I therefore purchased and used Saxon EE 11 for generating an .sef.json, which unfortunately didn’t fix the issue. (I don’t regret buying a new EE version though.)
Please register to edit this issue