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] Resolving xi:include with xpointer="element()"

Hi Peter,
Yes, libxml2 (xmllint and xsltproc) has supported the element() scheme of 
XPointer for some time.  It is mentioned in my book in this section:


The XInclude driver in Elliotte Rusty Harold's XOM kit also supports the 
element() scheme.


He says you can run it like this to resolve your XIncludes:

java -cp xom-1.0b8.jar:xom-samples.jar nu.xom.samples.XIncludeDriver 
bookfile.xml  >  resolved.xml

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Peter Desjardins" <pdesjardins@supplyscape.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, November 13, 2006 2:48 PM
Subject: [docbook-apps] Resolving xi:include with xpointer="element()"

I am trying to resolve xi:includes that are inserted in my DocBook XML
by XMLMind XML Editor (Standard Edition 3.5.0).  I have used the "copy
as reference" feature of XXE to reference a child element in another
document.  When I paste the referenced element into the document I am
trying to publish, XXE adds this code:

  <xi:include href="source-document.xml"
              xpointer="element(IdOfMySection)" />

This is a wonderful way to author my DocBook content.  But I am having
trouble finding a way to resolve these xi:includes before passing the
content into the Saxon processor.

Is there a tool that will process xi:include elements that use

I've been poring through the list archives and DocBook XSL: The Complete
Guide for some time, without finding one.  My latest hope is that
updating my Cygwin installation with the latest libxml2 in the hopes
that "xmllint --xinclude" will handle this xpointer.  Pardon me if I'm
missing something obvious.

Thanks for your help.

Peter Desjardins
SupplyScape Corporation
+1 781 503 7441

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

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