I was able to remove the full pathname of base.dir from the lists of
titles in the book toc by this customization of the template make.lot.chunk:
<xsl:variable name="href">
<xsl:value-of select="$type"/>
<xsl:text>-toc</xsl:text>
<xsl:value-of select="$html.ext"/>
<!--<xsl:call-template name="make-relative-filename">
<xsl:with-param name="base.dir" select="''"/>
<xsl:with-param name="base.name">
<xsl:call-template name="dbhtml-dir"/>
<xsl:value-of select="$type"/>
<xsl:text>-toc</xsl:text>
<xsl:value-of select="$html.ext"/>
</xsl:with-param>
</xsl:call-template>-->
</xsl:variable>
Removing the call to make-relative-filename for 'href' doesn't seem to
affect any other generated lots.
On 16-01-13 7:54 AM, Bob Stayton wrote:
Hi Dave,
I don't think this is an issue for DocBook XSL, but with Oxygen's
transformation scenarios. You should ask them if there is an option
to specify the current working directory as a base for a
transformation so you don't have to specify a full path in base.dir.
That said, you still should not be getting full paths in the
ListofTitles links. Those should be computed relative to base.dir
where the book TOC file is, and should not contain base.dir in their
path. I'm not clear how Oxygen is changing that aspect.
Bob Stayton
Sagehill Enterprises
[email protected] <mailto:[email protected]>
*From:* Xmplar <mailto:[email protected]>
*Sent:* Tuesday, January 15, 2013 2:43 AM
*To:* DocBook Apps <mailto:[email protected]>
*Subject:* [docbook-apps] Specifying directory for epub 3 output
I'd like to know if there is a way to save all epub files (META-INF,
OEBPS, mimetype) to the current directory without modifying the param
base.dir. I've posted a question on the oXygen forum:
http://www.oxygenxml.com/forum/topic7814.html but it doesn't answer my
specific query because I'm not using oXygen's EPUB transformation
scenario.
To save all output files I've had to specify the exact pathname of my
current directory in the 'base.dir' param with a few custom variables:
<xsl:variable name="epuboutput.dir">c:/xmplar/cop-e-boox
v0-2/master1-20120826</xsl:variable>
<xsl:variable name="basemetainf.dir" select="concat($epuboutput.dir,
'/epuboutput/')" />
<xsl:param name="base.dir" select="concat($basemetainf.dir, 'OEBPS/')"/>
I get the files generating where I want them, but in the resulting
book toc I get the lists of titles all being generated with the entire
pathname in the <a href...> element:
<div xmlns:xlink="http://www.w3.org/1999/xlink" class="ListofTitles">
<a href="c:/xmplar/cop-e-boox
v0-2/master1-20120826/epuboutput/OEBPS/figure-toc.xhtml">Figures</a></div>
<div xmlns:xlink="http://www.w3.org/1999/xlink" class="ListofTitles">
<a href="c:/xmplar/cop-e-boox
v0-2/master1-20120826/epuboutput/OEBPS/table-toc.xhtml">Tables</a></div>
<div xmlns:xlink="http://www.w3.org/1999/xlink" class="ListofTitles">
<a href="c:/xmplar/cop-e-boox
v0-2/master1-20120826/epuboutput/OEBPS/example-toc.xhtml">Boxes</a></div>
<div xmlns:xlink="http://www.w3.org/1999/xlink" class="ListofTitles">
<a href="c:/xmplar/cop-e-boox
v0-2/master1-20120826/epuboutput/OEBPS/equation-toc.xhtml">Equations</a></div>
I thought I found where to remove the full pathname from href (in
template name="make.lot.chunk") but commenting out the lines
containing base.dir doesn't work.
So in short, I'd like to know:
1. How I can use the standard base.dir param without my pathname
modifications and generate files in the current directory (instead of
them being saved to the oXygen program directory), or
2. How I can remove the pathname from the href of the lists of titles
while using the modified base.dir.
Thanks!
--
*Dave Gardiner*