Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1489

[PATCH] XInclude transformer does not handle fallback correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.1.10, 2.2
    • * Cocoon Core
    • None
    • Operating System: All
      Platform: All
    • 34325
    • Patch available

    Description

      When using the <xi:fallback> element, the XInclude transformer returns a
      not-well-formed document.

      Example:

      <root xmlns:xi="http://www.w3.org/2001/XInclude">
        <xi:include href="this_file_does_not_exist.xml">
          <xi:fallback>
            <element>This should be here if the file was not found</element>
          </xi:fallback>
        </xi:include>
      </root>

      returns this, if the included resource does not exist:

      <?xml version="1.0" encoding="ISO-8859-1"?><root
      xmlns:xi="http://www.w3.org/2001/XInclude">
        
            <element>This should be here if the file was not found
        </xi:include>
      </root>

      Attachments

        1. COCOON-1489.diff
          17 kB
          Jason Johnston
        2. ASF.LICENSE.NOT.GRANTED--cocoon-xinclude-transformer-patch.txt
          0.6 kB
          Joachim Breitsprecher

        Activity

          People

            antonio Antonio Gallardo Rivera
            jeyk Joachim Breitsprecher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: