[ http://issues.apache.org/jira/browse/COCOON-1489?page=all ]

Jean-Baptiste Quenot reassigned COCOON-1489:
--------------------------------------------

    Assign To:     (was: Jean-Baptiste Quenot)

Unassigning this bug, as there's also another issue COCOON-1753, maybe 
XIncludeTransformer needs some more non-trivial polishing

> [PATCH] XInclude transformer does not handle fallback correctly
> ---------------------------------------------------------------
>
>          Key: COCOON-1489
>          URL: http://issues.apache.org/jira/browse/COCOON-1489
>      Project: Cocoon
>         Type: Bug
>   Components: * Cocoon Core
>     Versions: 2.2-dev (Current SVN)
>  Environment: Operating System: All
> Platform: All
>     Reporter: Joachim Breitsprecher
>  Attachments: cocoon-xinclude-transformer-patch.txt
>
> 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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira