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] problems with olinks and dbhtml dir


Hi Luciano,
This is a bug.  The olink database should be capturing the dbhtml dir and 
filename values as part of the data, but does not seem to be doing so.  Can 
you please file a bug report?

http://sourceforge.net/docman/display_doc.php?docid=27830&group_id=21935

When this is fixed, you should be able to process this document without 
having to create multiple targetdocs for the same document.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Luciano Scavizzi" <feanorelf@gmail.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Sunday, July 23, 2006 3:33 PM
Subject: [docbook-apps] problems with olinks and dbhtml dir


> Hallo.
> I have a modular book, and I am trying to make a chunk xhtml out of
> it, but I have some problems with the dbhtml dir instruction.
>
> the xml sitemap is:
>
> book
>   |------- book.xml
>   |
>   |------- chapter01
>   |              |------ chapter01.xml
>   |              |------ article0101.xml
>   |              |------ article0102.xml
>   |
>   |------- chapter02
>   |              |------ chapter02.xml
>   |              |------ article0201.xml
>   |              |------ article0202.xml
>
> Each article is a separate xml file and the each chapterxy.xml
> xincludes its articles.
>
> I want a chunk xhtml output with the same directory structure, so, for
> each chapter xy I have:
> <chapter><?dbhtml dir="chapterxy" ?>
>
> The target database for chunk xhtml is:
> <targetset>
> <sitemap>
> <dir name="xhtml">
> <document targetdoc="index">&targets;</document>
> <dir name="chapter01">
> <document targetdoc="ch01art01">&targets;</document>
> <document targetdoc="ch01art02">&targets;</document>
> </dir>
> <dir name="chapter02">
> <document targetdoc="ch02art01">&targets;</document>
> </dir>
> </dir>
> </sitemap>
> </targetset>
>
> Now, the problem is that, when I point to an article in chapter02 from
> an article in chapter01, i.e. <olink targetdoc="ch02art01"
> targetptr="foo">chapter 2.1</olink>
> the link i get in my xhtml output output is:
>  <a href="chapter02/article0201.html#foo">
> while I would expect:
>  <a href="../chapter02/article0201.html#foo">
>
> The command I use to generate the target.db is:
>
> xsltproc  --xinclude    --stringparam  collect.xref.targets  "only"  \
>    xhtml/chunk.xsl  book.xml
>
> while I generate my chunk xhtml with:
>
> xsltproc  --xinclude \
>   --stringparam target.database.document "olinkdb.xml" \
>   --stringparam current.docid "index" \
>   xhtml/chunk.xsl  book.xml
>
> if I put all my html output in the same directory I have no problems,
> but the directory itself becomes a mess.
> What am I doing wrong?
>
> Thanks,
> Luciano
>
> ---------------------------------------------------------------------
> 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]