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

Confirmed Issue #8504431 • Assigned to Bo C.


Jacoby T.
Aug 16, 2016
This issue is public.
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}"/>

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

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


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.


  • 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”

    Changed Assigned To from “Eugene V.” to “Bo C.”

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

Sign in