Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-10309

XSLT: Stylesheets with embedded call-template having parameters with the same name should be supported.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • Some future release
    • 4.7.0
    • XML: DOM
    • None

      If I run the xmlpattern tool with the attached XSL file, I get:
      Error XTSE0670 ...: Each name of a template parameter must be unique; param1 is duplicated.

      However this should be supported according to:
      http://www.w3.org/TR/xslt#dt-shadows (section "Variables and Parameters within Templates")

      The bug is not happening for each parameter. If you comment the lines about param1 in the file, you won't get any error for param2. Maybe because its value is passed to the parent call-template.

      This bug prevent Google calendar to work properly in QtWebKit when XSLT is enabled.
      See: https://bugs.webkit.org/show_bug.cgi?id=37445

        1. test.xml
          0.1 kB
        2. xsltbug.xsl
          1.0 kB
        3. xsltbug.xsl
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            jturcott Jocelyn Turcotte
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes