XalanJ2
  1. XalanJ2
  2. XALANJ-1478

bad XSL provides no useful error message

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

      1. patch.j1478.txt
        4 kB
        Henry Zongaro

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Henry Zongaro
            Reporter:
            rich gooding
            Reviewer:
            Brian Minchau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development