cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34325] New: - [PATCH] XInclude transformer does not handle fallback correctly
Date Wed, 06 Apr 2005 10:03:42 GMT
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: jb@dserv.net


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.

Mime
View raw message