OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: 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:

Make sure you are using the latest xsltproc (libxslt 1.1.2 and libxml
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

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]