xpath-default-namespace not being honoured on ixsl:*/@object
I've had a couple of cases where the XPath expression in the
object attribute of ixsl instructions needs specific namespace bindings (i.e adding a prefix) rather than defaulting to the
xpath-default-namespace in scope, using the XX compiler. Will investigate.
Updated by Debbie Lockett about 3 years ago
- Applies to JS Branch 2.0 added
JS2 unit tests ixsl/setStyle20 and setStyle21 added.
e.g. setStyle21 does:
<xsl:template name="main" xpath-default-namespace="http://www.w3.org/2000/svg"> <ixsl:set-style name="display" select="'none'" object="ixsl:page()/html:html/html:body//svg"/> </xsl:template>
Which should hide the SVG element in the HTML page, but these fail with XX SEFs.
Updated by Debbie Lockett over 2 years ago
- Status changed from New to Resolved
- Assignee changed from John Lumley to Debbie Lockett
- Fix Committed on JS Branch 2 added
JS unit tests ixsl/setStyle20 and setStyle21 ported over to new Selenium testing framework (mochaBrowserTests).
Code fix committed in XX compiler in ixsl.xsl, to ensure that xpath-default-namespace is included on IXSL extension instructions when relevant.
Please register to edit this issue