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.


cga2000 wrote:

> Would anyone know whether I can use the same strategy to specify
> alternate css stylesheets that I can switch to on the fly while browsing
> the html document?
> 
> Or do I need to specify the alternate CSS style sheets in the prolog of
> each DocBook/XML document?
> 
> At this point I modify the XSL fragment above and regenerate the html
> documents every time I want to switch style sheets, which is slow and
> error-prone.  

You can emit all necessary link elements by overriding user.head.content
 template:

<xsl:template name="user.head.content">
  <link .../>
  <link .../>
</xsl:template>

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
------------------------------------------------------------------
 Want to speak at XML Prague 2007 => http://xmlprague.cz/cfp.html

OpenPGP digital signature



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