This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: website xsl: unused variable (and chunking question)
On Sat, 20 Sep 2003 22:39:22 -0700
Bob Stayton <bobs@sco.com> wrote:
<skipped/>
> That's quite an extensive customization!
> Thanks for sharing it.
>
> I and others are interested in adding the website tabular
> navigation scheme as an option to the regular chunk
> stylesheet, outside of website. Can you give some guidance
> as to which parts of your customization did that?
I not use tabular schema for visual formatting - only CSS.
Navigation menu is "div.navhead".
CSS part:
/* Hack from threepart.css/threepart-f.css
http://www.w3.org/Style/CSS/
to hide position:fixed and other rules from stupid internet
explorer*/
DIV.navhead {
position: absolute;
background-color: #e8e5e8;
border-right-style: solid;
border-bottom-style: solid;
border-color: #87bbdb;
border-width: thin;
width: 11em;
height: auto;
top: 0em; right: auto; bottom: 0em; left: 0em;
padding: 0em;
}
BODY>DIV.webpage>DIV.navhead {
position: fixed;
border-bottom-style: none;
}
/* end of hide hack */
div.navhead added by customization of
docbook-xsl/html/chunk-common.xsl
<xsl:template name="chunk-element-content">
For integrating chunking with website I'm add support for webpage
root tag:
docbook-xsl/html/chunk-common.xsl
<xsl:template match="*" mode="recursive-chunk-filename">
...
<xsl:when test="parent::webpage">
<xsl:value-of select="$root.filename"/>
<xsl:value-of select="$html.ext"/>
</xsl:when>
...
...
<xsl:when test="self::webpage">
<!-- <xsl:text>webpage</xsl:text>-->
<xsl:if test="not($recursive)">
<xsl:value-of select="$html.ext"/>
</xsl:if>
</xsl:when>
...
Most of my customization is support for "webpage" inside
chunking.
BTW, support in the DocBook XSL stylesheets for additional
chunking tags (from params) could be useful.
--
Regards, Vyt
mailto: vyt@vzljot.ru
JID: vyt@vzljot.ru
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.