Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-814

assertion when including invalid style sheet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.12
    • None
    • XalanC
    • None
    • Tested on Fedora 35 using xalan-c-1.12.0-15.fc35.x86_64

    Description

      executing Xalan using the attached files leads to an assertion:

      Xalan xml.xml xsl.xsl

      Xalan: /builddir/build/BUILD/xalan_c-1.12/src/xalanc/XSLT/Stylesheet.cpp:238: xalanc_1_12::ElemTemplateElement* xalanc_1_12::Stylesheet::initWrapperless(xalanc_1_12::StylesheetConstructionContext&, const xercesc_3_2::Locator*): Assertion `m_firstTemplate == 0' failed.

      Of course invalid.html is not an valid style sheet, but IMHO Xalan should not assert but return a (fatal) error.

       

      Attachments

        1. invalid.html
          0.0 kB
          Christian Luidolt
        2. simple.xsl
          0.2 kB
          Christian Luidolt
        3. xml.xml
          0.1 kB
          Christian Luidolt
        4. xsl.xsl
          0.2 kB
          Christian Luidolt

        Activity

          People

            ggregory Gary D. Gregory
            luidolt-hw Christian Luidolt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: