List Info

Thread: problems with olinks and dbhtml dir




problems with olinks and dbhtml dir
user name
2006-07-24 16:36:02
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/displa
y_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
bobssagehill.net


----- Original Message ----- 
From: "Luciano Scavizzi" <feanorelfgmail.com>
To: <docbook-appslists.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&
gt;
> <dir name="chapter01">
> <document
targetdoc="ch01art01">&targets;</docum
ent>
> <document
targetdoc="ch01art02">&targets;</docum
ent>
> </dir>
> <dir name="chapter02">
> <document
targetdoc="ch02art01">&targets;</docum
ent>
> </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-unsubscribelists.oasis-open.org
> For additional commands, e-mail: docbook-apps-helplists.oasis-open.org
>
>
> 



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )