XSLT 1.0 in Edge fails on template match which has the current() function in it

Confirmed Issue #8504431 • Assigned to Eugene V.

Details

Author
Jacoby T.
Created
Aug 16, 2016
Privacy
This issue is public.
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

The 4 test files should be placed in a single directory, and a webserver started against that directory. Then use your browser to open index.html and observe the messages in console.

The problem is this template match pattern:

  <xsl:template match="*[preceding-sibling::*[@name=current()/@name]]">
    <duplicate name="{@name}"/>
  </xsl:template>

where if you remove the current() function, the stylesheet works ok.

This function is correctly used and is part of the XSLT1.0 specification.

Attachments

Comments and activity

  • Correction: I am wrong - it is an error to use the current() function in a pattern - I just looked. This works in Chrome, webkit, xsltproc etc but according to spec it shouldn’t.

    https://www.w3.org/TR/xslt

  • Microsoft Edge Team

    Changed Assigned To to “Brad E.”

    Changed Assigned To to “Rick J.”

    Changed Assigned To to “Travis L.”

    Changed Assigned To from “Travis L.” to “Eugene V.”

    Changed Status to “Confirmed”

You need to sign in to your Microsoft account to add a comment.

Sign in