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] olink processing


This is a bug in xsltproc not resolving an XInclude when used in the
document() function in XSLT.  This has supposedly been fixed in the latest
versions of libxml2 and libxslt.  Unfortunately they have not yet released
the latest versions as Windows binaries (even though the source has been
available since September).  If you aren't on Windows you might give the
latest versions a try.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Simon Kennedy" <stonewolfsoft@yahoo.co.uk>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, November 23, 2005 11:32 AM
Subject: [docbook-apps] olink processing


> Can somebody help, the lastest talk about olinks has reminded me that I
> can't get them to work.
>
> I'm confused!
>
> Hopefully this will be enough information...
>
> I'm using xsltproc
> My output directory has the following hierarchy
>
> /xhtml
>     /en
>        /Book1
>        /Book2
>
> My olink.db file which is in the 'en' directory is
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE targetset SYSTEM
> "../docbook/docbook-xsl-1.69.1/common/targetdatabase.dtd">
> <targetset lang="en" xml:lang="en"
> xmlns:xi="http://www.w3.org/2001/XInclude/";>
>   <sitemap>
>     <dir name="en">
>       <dir name="Book1">
>         <document targetdoc="MyBook1">
>           <xi:include href="./Book1/target.db"/>
>         </document>
>       </dir>
>       <dir name="Book2">
>         <document targetdoc="MyBook2">
>           <xi:include href="./Book2/target.db"/>
>         </document>
>       </dir>
>     </dir>
>   </sitemap>
> </targetset>
>
> the target.db files are being generated correctly.
>
> When I process the documents in their individual directories
> i.e. I use --stringparam target.database.document "../olinkdb.xml"
> I only get the following error
>
> Error: unresolved olink: targetdoc/targetptr = 'MyBook1/Application'
>
> There are no errors about using the xinclude from olink.db.
>
> If I replace the xincludes with the contents of the target.db files
> evertyhing works OK, so it seems I'm not getting the paths correct.
>
> Cany anybody help / explain what's going on
>
> Many thanks
> Simon Kennedy
>
>
> ___________________________________________________________
> To help you stay safe and secure online, we've developed the all new
Yahoo! Security Centre. http://uk.security.yahoo.com
>
> ---------------------------------------------------------------------
> 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]