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

Debug assertion switching to HTML mode when the outputter is producing a DOM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.10
    • None
    • XalanC
    • None
    • Windows XP & SV2005 confirmed, possibly other environments

    Description

      Running the included sample "TransformToXercesDOM" with the supplied birds.xml and the stylesheet below will produce an assertion:

      ASSERTION---------------
      C:\Temp\Xalan\trunk\Build\Win32\VC8\Debug>TransformToXercesDOM birds.xml test.xsl
      Assertion failed: theFormatter != 0 && theFormatter->getWriter() != 0, file ..\..\..\..\src\xalanc\XSLT\XSLTEngineImpl.cpp, line 1568
      -----------------------------------

      STYLESHEET-------------------------
      <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <!-- Uncommenting eliminates assertion
      <xsl:output method="xml" indent="yes"/> -->

      <xsl:template match="/">
      <html><body></body></html>
      </xsl:template>

      </xsl:stylesheet>
      ------------------------------------------------

      Per David Bertoni's response on xalan-dev, the resolution is to remove the assertion behavior in this scenario.

      Reference: http://mail-archives.apache.org/mod_mbox/xml-xalan-dev/200806.mbox/%3c4849B355.3050201@apache.org%3e

      Attachments

        1. XALANC-677.patch
          3 kB
          David N Bertoni
        2. test1.xsl
          0.2 kB
          David N Bertoni
        3. test1.xml
          0.0 kB
          David N Bertoni

        Activity

          People

            dbertoni David N Bertoni
            zvickery Zach Vickery
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: