OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook] Alternate CSS stylesheets.


On Sun, Mar 11, 2007 at 03:45:31PM EST, Jirka Kosek wrote:
> cga2000 wrote:
> 
> > Naturally, it could be just a syntax error in my coding.  I don't know
> > XSL so I'm just guessing.
> 
> Then you should start by learning at least basics of XSLT and how to use
> it to customize XSL stylesheets:
> 
> http://www.sagehill.net/docbookxsl/

I took a quick peek and came up with the following fragment that does what 
I need:

-----------------------------------------------------------------------------
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                xmlns:fo="http://www.w3.org/1999/XSL/Format";
                version="1.0">
 <xsl:param name="use.id.as.filename" select="'1'"/>
 <xsl:param name="admon.graphics" select="'1'"/>
 <xsl:param name="admon.graphics.path"></xsl:param>
 <xsl:param name="chunk.section.depth" select="2"></xsl:param>
 <xsl:param name="html.stylesheet"
    select="'/home/gavron/devel/docbook/tests/css-dir/free-templ/fbr.css'"/>
 <xsl:param name="section.autolabel" select="1"/>
 <xsl:param name="toc.section.depth" select="5"/>
 <xsl:template name="user.header.content">
  <link href="walsh.css" title="walsh" rel="stylesheet" type="text/css"/>
  <link href="bb.css" title="bb" rel="alternate stylesheet" type="text/css"/>
  <link href="bn.css" title="bn" rel="alternate stylesheet" type="text/css"/>
  <link href="br.css" title="br" rel="alternate stylesheet" type="text/css"/>
  <link href="gb.css" title="gb" rel="alternate stylesheet" type="text/css"/>
  <link href="gg.css" title="gg" rel="alternate stylesheet" type="text/css"/>
  <link href="gw.css" title="gw" rel="alternate stylesheet" type="text/css"/>
  <link href="lb.css" title="lb" rel="alternate stylesheet" type="text/css"/>
  <link href="ml.css" title="ml" rel="alternate stylesheet" type="text/css"/>
  <link href="mn.css" title="mn" rel="alternate stylesheet" type="text/css"/>
  <link href="sr.css" title="sr" rel="alternate stylesheet" type="text/css"/>
 </xsl:template>
/xsl:stylesheet>
-----------------------------------------------------------------------------

Thanks,
cga






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]