Bug #4641
closed
xpath-default-namespace not being honoured on ixsl:*/@object
Fix Committed on JS Branch:
2
Description
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.
- 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.
- Applies to JS Branch 2 added
- Applies to JS Branch deleted (
2.0)
- 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.
- Status changed from Resolved to Closed
This issue has been resolved in the Saxon 2.2 maintenance release.
- % Done changed from 0 to 100
- Fixed in JS Release set to Saxon-JS 2.2
Please register to edit this issue
Also available in: Atom
PDF
Tracking page