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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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


Subject: Re: [docbook-apps] onechunk.xsl & CSS


Hi,
Indeed, it is a bug that affects chunked as well as onechunked output.  This template 
in html/chunk-code.xsl:

<xsl:template match="*" mode="process.root">
  <xsl:apply-templates select="."/>
  <xsl:call-template name="generate.css"/>
</xsl:template>

should be changed to call "generate.css.files", not "generate.css":

<xsl:template match="*" mode="process.root">
  <xsl:apply-templates select="."/>
  <xsl:call-template name="generate.css.files"/>
</xsl:template>

I'll fix it in the SVN repository for future versions.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "Aankhen" <aankhen@gmail.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, March 31, 2011 6:08 AM
Subject: [docbook-apps] onechunk.xsl & CSS


Hi,

I’m having some trouble getting ‘onechunk.xsl’ from the DocBook XSL
distro to copy my CSS files.  The structure I have is:

scc/
  single-chunk-css.xml
  single-chunk-css.xsl
  single-chunk-css.css.xml

The XSL file imports ‘onechunk.xsl’ and sets ‘base.dir’ to ‘scc/’ (to
keep the output separate) and ‘custom.css.source’ to
‘single-chunk-css.css.xml’.  When I process it using ‘xsltproc’, this
is the output:

  Writing single-chunk-css/index.html for book
  <link rel="stylesheet" type="text/css" href="single-chunk-css.css">

When I open the HTML file, I see that same ‘link’ element.  However,
the actual file is not copied to ‘single-chunk-css.css’.

The files are attached in a ZIP archive.  To test it out, run
‘xsltproc single-chunk-css.xsl single-chunk-css.xml’ (change the path
of the DocBook stylesheets in the XSL file if necessary), then open
the generated ‘single-chunk-css/index.html’.  The text should be
green.

Is this a bug in the stylesheet, or am I doing something wrong?

Thanks,
Aankhen



--------------------------------------------------------------------------------


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org 



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