Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3933

XmlTemplateEngine does not handle quotes in attribute values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8-beta-1
    • 1.6.8, 1.7.1, 1.8-beta-1
    • Templating
    • None
    • OpenJDK 6, Linux

    Description

      XmlTemplateEngine cannot handle quotes in attributes like this:

      <document a='quoted "string"'/>
      
      Caught: groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed:
      XmlTemplateScript1.groovy: 2: unexpected token: string @ line 2, column 33.
         out.print("<document a='quoted "string"'/>\n");
      

      Attachments

        1. 3933_v18x.txt
          1 kB
          Roshan Dawrani
        2. tmpl.groovy
          0.2 kB
          Marcus Better

        Activity

          People

            roshandawrani Roshan Dawrani
            marcusb Marcus Better
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: