[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK: Re: Advantages of XInclude?
On Wed, Nov 13, 2002 at 04:53:14AM -0500, Daniel Veillard wrote: > On Wed, Nov 13, 2002 at 10:29:04AM +0100, Janning Vygen wrote: > > Am Dienstag, 12. November 2002 21:39 schrieb Daniel Veillard: > > > > > > For xmllint, libxml2 command line tool, use: > > > > > > xmllint --xinclude --postvalid document.xml > > > > It doesnt work because of xml:base attributes, or am i wrong? It > > complains: > > > > "No declaration for attribute base of element sidebar" > > > > you have to extend the docbook dtd as far as i know. > > Right, XInclude requires the addition of xml:base at the inclusion > point (unless the document included and the main one share a base > which makes it unecessary, like if they are in the same directory). > I see no other way than adding xml:base to the DocBook DTD (which would > make sense to me but it's not my call.) I was going to suggest using an XML catalog to locate XIncludes, so that any xml:base could appear in the catalog file rather than the document. That works to resolve XIncludes with xsltproc. However, I can't seem to get xmllint to use XML catalogs. The following xsltproc command works and reports all the steps toward catalog resolution of the xinclude hrefs: XML_CATALOG_FILES=catalog.xml \ XML_DEBUG_CATALOG=1 \ xsltproc --catalogs --xinclude \ docbook.xsl \ includetest.xml but this similar xmllint command does not: XMLCATALOG_FILES=catalog.xml \ XML_DEBUG_CATALOG=1 \ xmllint --catalogs --xinclude --noout --postvalid \ includetest.xml It just reports that the xinclude hrefs can't be found, and does not indicate it is using the catalog. My xmllint -version reports: xmllint: using libxml version 20425 compiled with: FTP HTTP HTML C14N Catalog DocBook XPath XPointer XInclude Iconv Unicode Regexps Automata Does xmllint only support SGML catalogs, or am I missing something? -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: bobs@sco.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC