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

bad XSL provides no useful error message

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5Dx
    • Fix Version/s: None
    • Component/s: Xalan
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC
    • Xalan info:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: