This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Using XIncludes to include infosets
Bob Stayton wrote:
Hmm, exactly what is your result? I tested with your document
and the paragraph with the specified id was in the output.
Are you getting any error messages at all?
Yes, I am getting error messages. Here is my log:
Script started on Mon Feb 2 19:30:52 2004
plexus@warpgondel2: ~/labor/xinclude-fehler$ xmllint --version
xmllint: using libxml version 20605
compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer
XInclude Iconv Unicode Regexps Automata Schemas
plexus@warpgondel2: ~/labor/xinclude-fehler$
plexus@warpgondel2: ~/labor/xinclude-fehler$ xmllint --xinclude xinclude.xml
xinclude.xml:13: element include: XInclude error : XPointer evaluation
failed: #xpointer(id('x26122003'))
xinclude.xml:13: element include: XInclude error : could not load
daten.xml, and no fallback was found
<?xml version="1.0" encoding="iso-8859-15"?>
<webpage xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:rddl="http://www.rddl.org/" id="testsZwo.xinclude" lang="de">
<head>
<title>XIncludes</title>
</head>
<section>
<title>Inhalt mittels XInclude einbinden</title>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="./daten.xml" xpointer="xpointer(id('x26122003'))">
<xi:fallback>
<warning>
<para>XInclude schlug fehl!</para>
</warning>
</xi:fallback>
</xi:include>
</section>
<section>
<title><filename>xinclude-daten.xml</filename> als Text
eingebunden</title>
<programlisting><?xml version="1.0"?>
<tip>
<para id="x25122003">Das sollte man nicht sehen!</para>
<para id="x26122003">XInclude war erfolgreich!</para>
</tip>
</programlisting>
</section>
</webpage>
plexus@warpgondel2: ~/labor/xinclude-fehler$ cat daten.xml
<?xml version="1.0"?>
<tip>
<para id="x25122003">Das sollte man nicht sehen!</para>
<para id="x26122003">XInclude war erfolgreich!</para>
</tip>
plexus@warpgondel2: ~/labor/xinclude-fehler$ exit
plexus@warpgondel2:
~/ew/av/adoc/richtlinien/konfigurationsmanagement/versionierung$ exit
Script done on Mon Feb 2 19:35:43 2004
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
----- Original Message -----
From: "Oliver Fischer" <plexus@snafu.de>
To: "Bob Stayton" <bobs@sagehill.net>
Cc: "apps docbook" <docbook-apps@lists.oasis-open.org>
Sent: Monday, February 02, 2004 6:09 AM
Subject: Re: [docbook-apps] Using XIncludes to include infosets
Hello Bob
Thank you for your reply.
Bob Stayton wrote:
Try using this syntax:
xpointer="xpointer(id('x26122003'))"
I tried it but the result is still the same.
Make sure you are using the latest xsltproc (libxslt 1.1.2 and libxml
2.6.5).
Several xinclude bugs have been fixed recently.
I am using this versions.
Personally, I find the xpointer="xpointer()" syntax a bit redundant.
And from my viewpoint it is misleading.
I can't actually tell from reading the W3C specs. Perhaps
Daniel Velliard can clarify.
I think, I am going to write a bugreport. :(
BTW. does the current xalanJ version support XIncludes? I think, that is
it necessary for my to have a redundant tool chain.
Kind Regards,
Oliver Fischer
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.