You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "David Crossley (JIRA)" <ji...@apache.org> on 2006/03/01 07:48:41 UTC
[jira] Updated: (COCOON-1489) [PATCH] XInclude transformer does not
handle fallback correctly
[ http://issues.apache.org/jira/browse/COCOON-1489?page=all ]
David Crossley updated COCOON-1489:
-----------------------------------
Bugzilla Id: (was: 34325)
Other Info: [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>
was:
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>
> [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