This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] unresolved xincludes with xsltproc
- From: Daniel Veillard <veillard at redhat dot com>
- To: Bob Stayton <bobs at sco dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 29 Oct 2003 05:12:55 -0500
- Subject: Re: [docbook-apps] unresolved xincludes with xsltproc
- References: <20031028183813.A7487@sco.com>
- Reply-to: veillard at redhat dot com
On Tue, Oct 28, 2003 at 06:38:13PM -0800, Bob Stayton wrote:
> I notice when using XIncludes with xsltproc that
> it will report an error when it cannot open
> the file referenced by the href attribute. But
> if you use the xpointer syntax, there is no error
> if the file is there but the xpointer does
> not resolve.
>
> For example, a bad filename:
>
> <xi:include href="badname.xml#foo"/>
>
> will fail with this message:
>
> warning: failed to load external entity "badname.xml"
> XInclude: could not load badname.xml#foo, and no fallback was found
>
> But when I use a good filename but a bad id
> in the xpointer, I get no error message at all:
>
> <xi:include href="goodname.xml#nosuchid"/>
>
> Neither xmllint nor xsltproc report this as a problem.
> Nor does it use the fallback, if it is specified.
> But of course, this is a problem if content goes missing
> because of a typo in the xpointer expression.
>
> I realize that an xpath expression that resolves
> to no nodes is a valid expression, but it is not
> what was intented.
> Does anyone have a way to flag such missing XIncludes?
Hum, sounds like a sub-resource error, did you tried with libxml2-2.6.x ?
IF you still see the problem, please bugzilla it:
http://xmlsoft.org/bugs.html
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.