This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Using XIncludes to include infosets


----- 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/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]