This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: modular docbook documents using xpointer
- From: Arno Sosna <Arno dot Sosna at update dot com>
- To: 'Bob Stayton' <bobs at caldera dot com>, Jirka Kosek <jirka at kosek dot cz>,Arno Sosna <Arno dot Sosna at update dot com>
- Cc: "'docbook-apps at lists dot oasis-open dot org'" <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 26 Sep 2002 08:40:09 +0200
- Subject: RE: DOCBOOK-APPS: modular docbook documents using xpointer
> -----Original Message-----
> From: Bob Stayton [mailto:bobs@caldera.com]
> Sent: Donnerstag, 26. September 2002 07:38
> To: Jirka Kosek; Arno Sosna
> Cc: 'docbook-apps@lists.oasis-open.org'
> Subject: Re: DOCBOOK-APPS: modular docbook documents using xpointer
>
>
> On Tue, Sep 24, 2002 at 11:03:04PM +0200, Jirka Kosek wrote:
> > Arno Sosna wrote:
> >
> > > <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
> > >
> href="chapter.xml#xpointer(/chapter/*[not(descendant-or-self::
> chapterinfo)])
> > > ">
> >
> > Use #xpointer(//*[not(ancestor-or-self::chapterinfo)])
> >
> > What is nice on XPath is that you never know it enough ;-)
>
> Did this XPath actually work for you?
> I get an error when I try this expression with xsltproc --xinclude:
>
> Error Invalid expression
>
> xsltproc --version:
> Using libxml 20424, libxslt 10020 and libexslt 711
> xsltproc was compiled against libxml 20424, libxslt 10020
> libxslt 10020 was compiled against libxml 20424
well, it works technically - xmllint throws no error (i don't use xsltproc,
just use xmllint to merge my book).
the output however, was a horrible mess (chapter inside chapter,...). i
think, that xmllint has problems with slightly more complex xpath
statements.
wbr,
arno sosna