[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: http://www.sagehill.net/docbookxsl/ModularDoc.html#XincludeSelect The XInclude driver in Elliotte Rusty Harold's XOM kit also supports the element() scheme. http://www.xom.nu/ 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 email@example.com ----- Original Message ----- From: "Peter Desjardins" <firstname.lastname@example.org> To: <email@example.com> 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" xmlns:xi="http://www.w3.org/2001/XInclude" 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 xpointer="element()"? 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 http://www.supplyscape.com --------------------------------------------------------------------- To unsubscribe, e-mail: firstname.lastname@example.org For additional commands, e-mail: email@example.com