cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COCOON-1489) [PATCH] XInclude transformer does not handle fallback correctly
Date Sun, 28 May 2006 04:47:31 GMT
    [ http://issues.apache.org/jira/browse/COCOON-1489?page=comments#action_12413615 ] 

Antonio Gallardo commented on COCOON-1489:
------------------------------------------

The problem shows up if we replace the element with a nested <xi:include> in <xi:fallback>.
Testcase added:

http://svn.apache.org/viewvc?view=rev&revision=409920

> [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


Mime
View raw message