Dick Hamilton wrote:

But, xmllint fails if I use an xpointer expression like this:

<xi:include xmlns:xi="http://www.w3.org/2001/XInclude";
            href="chap1.xml"
            xpointer="xpointer(//chapter/title/node())"/>

Your expression //chapter/title is asking for elements which are in no namespace. You have to declare prefix for DocBook namespace for XPointer query. In theory you can use something like:

xpointer="xmlns(db=http://docbook.org/ns/docbook)xpointer(//db:chapter/db:title/node())"

Can you confirm whether xmllint supports this syntax?

                        Jirka

--
------------------------------------------------------------------
  Jirka Kosek      e-mail: [EMAIL PROTECTED]      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to