DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34325>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34325

           Summary: [PATCH] XInclude transformer does not handle fallback
                    correctly
           Product: Cocoon 2
           Version: Current SVN 2.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: core
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: [EMAIL PROTECTED]


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>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to