jaxp
  1. jaxp
  2. JAXP-64

FATAL ERROR: 'Could not compile stylesheet' when element contains open curly brace in string literal.

    Details

    • Issuezilla Id:
      64

      Description

      See URL for issue as reported in openjdk on Fedora. Reproducer and instructions
      therein.

      To elaborate, I've determined that only an open curly brace triggers this issue,
      not closing braces. The parseAVTemplate() function in
      com/sun/org/apache/xalan/internal/xsltc/compiler/AttributeValueTemplate.java
      from the source bundle for openjdk6 reports an error to the parser upon any "{"
      token found while IN_EXPR, IN_EXPR_SQUOTES, or IN_EXPR_DQUOTES, so that
      compilation is seen as failed later on.

      Afaict, upstream xalan-j has analogous code in
      org/apache/xalan/templates/AVT.java, where they loop after finding a quote
      within an expression, accepting anything within quotes as literal, avoiding this
      problem.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jaxp-issues
            Reporter:
            vanaltj
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: