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

bad XSL provides no useful error message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5Dx
    • None
    • Xalan
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • Operating System: Windows XP
      Platform: PC
    • PatchAvailable

    Description

      XSL below is bas because of contents of attribute 'test' on element 'if' - this
      crashes with message :

      (Location of error unknown)XSLT Error
      (javax.xml.transform.TransformerConfigurationException):
      javax.xml.transform.TransformerException: java.lang.RuntimeException:
      Programmers assertion in getNextStepPos: unknown stepType:

      {0}

      I think a line number would be better.

      ---------------------- XSL example ---------------------------
      <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
      <xsl:template match="/">
      <xsl:if test=".='2' or " >
      </xsl:if>
      </xsl:template>
      </xsl:stylesheet

      Attachments

        1. patch.j1478.txt
          4 kB
          Henry Zongaro

        Activity

          People

            zongaro@ca.ibm.com Henry Zongaro
            richg rich gooding
            Brian Minchau Brian Minchau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: