You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2003/11/26 15:45:53 UTC
DO NOT REPLY [Bug 25016] New: -
XInclude fallback does not work, if referenced file does not exist.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25016>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25016
XInclude fallback does not work, if referenced file does not exist.
Summary: XInclude fallback does not work, if referenced file does
not exist.
Product: Cocoon 2
Version: 2.1.3
Platform: PC
OS/Version: Windows 9x
Status: NEW
Severity: Normal
Priority: Other
Component: sitemap components
AssignedTo: dev@cocoon.apache.org
ReportedBy: commerce@hschmitt.de
To recreate the bug simply cop y this snip into:
cocoon-2.1.3\build\webapp\samples\aggregation\content\test.xml
<!-- Start -->
<hr/>
<para><b>Inclusion with an missing resource, will cause fallback
element content to be inserted:</b></para>
<para><b><![CDATA[<xi:include href="does_not_exist.xml#xpointer(/para)">]]
></b></para>
<xi:include href="does_not_exist.xml#xpointer(/para)">
<a>
<b>
Any random content inside the xi:include element will be ignored.
</b>
</a>
<xi:fallback>
An error occured! This is the content of the fallback element you're
seeing.
</xi:fallback>
And here's some more text you shouldn't see.
</xi:include>
<!-- End -->
The reason is org.apache.cocoon.transformation.XIncludeTransformer receives a
org.xml.sax.SAXException in line 409. If it receives a
org.apache.cocoon.ResourceNotFoundException everything would be fine. It did
work with cocoon-2.1-src.zip!