Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-1009

Simple transform works, but emits error w/out parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • 2.3Dx
    • None
    • None
    • Operating System: Other
      Platform: Other
    • 9127

    Description

      I'm using version 2.3.1 of Xalan-J. That version choice wasn't available in the
      "Version" box.

      I have a simple XML file and a relatively simple transform. When I run the
      transform on the command line, I see my desired XML output, but I also see the
      following odd error message (this is pasted directly):

      file:///C:/cygwin/home/dmkarr/java/strutstest/build/WEB-INF/test.xsl; Line 10;
      Column 32; 2 has an illegal attribute:

      {1}

      The entire stylesheet follows. Note that line 10 is the "xsl:attribute" element.

      Again, the output produced by this transform appears to be correct. Outside of
      this weird error message, I don't see anything wrong in my output.

      --------------------------
      <?xml version="1.0"?>
      <xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:output method="xml" indent="yes"/>
      <xsl:template match="/web-app">
      <xsl:apply-templates select="servlet"/>
      </xsl:template>
      <xsl:template match="*">
      <xsl:for-each select="@*">
      <xsl:attribute name="

      {.}

      ">
      <xsl:value-of select="."/>
      </xsl:attribute>
      </xsl:for-each>
      <xsl:copy-of select="."/>
      </xsl:template>
      </xsl:stylesheet>
      --------------------------

      Attachments

        Activity

          People

            Unassigned Unassigned
            dmkarr@earthlink.net David M. Karr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: