This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Using XIncludes to include infosets
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Oliver Fischer" <plexus at snafu dot de>, "apps docbook" <docbook-apps at lists dot oasis-open dot org>
- Date: Sun, 1 Feb 2004 15:00:13 -0800
- Subject: Re: [docbook-apps] Using XIncludes to include infosets
- References: <401D2726.6070400@snafu.de>
----- Original Message -----
From: "Oliver Fischer" <plexus@snafu.de>
To: "apps docbook" <docbook-apps@lists.oasis-open.org>
Sent: Sunday, February 01, 2004 8:19 AM
Subject: [docbook-apps] Using XIncludes to include infosets
> Hello,
>
> I try to use the new xinclude syntax in my documents but I am not able
> to succed. I have to documents. One of them is data.xml which looks like
> this:
>
> <tip>
> <para id="x25122003">Das sollte man nicht sehen!</para>
> <para id="x26122003">XInclude war erfolgreich!</para>
> </tip>
>
> The goal is to include the paragraph with the id x26122003. To reach
> this goal, I inserted the following in my maindocument:
>
> <xi:include href="data.xml" xpointer="id('x26122003')">
> ...
>
>
> Since I am not able to succeed with xsltproc, I would like to know if I
> use the right syntax for xpointer or not.
>
Try using this syntax:
xpointer="xpointer(id('x26122003'))"
Make sure you are using the latest xsltproc (libxslt 1.1.2 and libxml
2.6.5).
Several xinclude bugs have been fixed recently.
Personally, I find the xpointer="xpointer()" syntax a bit redundant.
I would think the name of the attribute would indicate that the value
is an XPointer. I wonder if "xpointer()" is necessary?
I can't actually tell from reading the W3C specs. Perhaps
Daniel Velliard can clarify.
Bob Stayton
Sagehill Enterprises
bobs@sagehill.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/.