Adding xi:fallback elements to the source would work for that:
http://www.w3.org/TR/xinclude/#fallback_element
David
> -----Original Message-----
> From: Schramm, Martin [mailto:]
> Sent: Monday, October 15, 2007 8:32 AM
> To:
> Subject: [docbook-apps] Change error message in output for
> missing xinclude?
>
> Dear list,
>
> I like to ask you for support in the following case:
>
> We have a DB "mother" document, which contains lots of
> xinclude references to other files. Many of these referenced
> files are generated by scripts (containing tables with test
> results). These generated files are written in valid DocBook 4.5 .
>
> But sometimes there is no data to be published in those
> files. So there is no file and the specific folder is empty,
> where the xinclude reference points to. In this case, when we
> publish the "mother" file as HTML or FO/PDF, there is
> naturally an error message in red letters saying
> "<xi:include></xi:include>".
>
> How can I adjust my customization, so the HTML and FO/PDF
> output says e.g. "Currently there is no data available" in
> normal font style instead of the original error message?
>
> Thanks a lot for your support. I could not find any hint that
> helped me out of this problem.
> Martin
>
> We use: DocBook XML V4.5, XSTLProc, Antenna House V 4.2,
> Docbook-xsl-v1-69-1
>
> *******************************************
> Harman Becker Automotive Systems GmbH
> Geschaeftsfuehrung: Dr. Peter Geiselhart - Michael Mauser
> - Edwin Summers - Regis Baudot Sitz der Gesellschaft:
> Karlsbad - Registergericht: Mannheim HRB 361395
>
> *******************************************
> Diese E-Mail enthaelt vertrauliche und/oder rechtlich
> geschuetzte Informationen. Wenn Sie nicht der richtige
> Adressat sind oder diese E-Mail irrtuemlich erhalten haben,
> informieren Sie bitte sofort den Absender und loeschen Sie
> diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail ist nicht gestattet.
> This e-mail may contain confidential and/or privileged
> information. If you are not the intended recipient (or have
> received this e-mail in error) please notify the sender
> immediately and delete this e-mail. Any unauthorized copying,
> disclosure or distribution of the contents in this e-mail is
> strictly forbidden.
> *******************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
>
>
>