Hi Bob,

thanks. Both two great options. I tested the first one and it works fine.

Thanks, Lars

2011/9/20 Bob Stayton <[email protected]>

> **
> Hi Lars,
> You can restore the former behavior by setting $html.stylesheet to your
> pathname and setting $docbook.css.source to empty.
>
> Regarding your objections, I get around those by using XInclude.  I have a
> standard CSS file that I include into an XML file using XInclude:
>
> <style>
> <xi:include href="mycustom.css" parse="text" xmlns:xi="
> http://www.w3.org/2001/XInclude"/>
> </style>
> That way I keep all the edits in one standard CSS file, and I don't have to
> copy it into each output directory using a separate command.
>
> As far as I know, it is not possible for an XSL stylesheet to open a plain
> text file like a CSS file.
>
> Bob Stayton
> Sagehill Enterprises
> [email protected]
>
>
>
> ----- Original Message -----
> *From:* Lars Vogel <[email protected]>
> *To:* Bob Stayton <[email protected]>
> *Cc:* DocBook Apps <[email protected]>
> *Sent:* Monday, September 19, 2011 3:32 PM
> *Subject:* Re: [docbook-apps] "html.stylesheet" parameter in the xhtml5
> Stylesheets
>
> Hi Bob,
>
> I don't see the advantage of using a XML document for my CSS file and
> having the the XSLT stylesheets copying it. I see the following issues:
>
> 1.) Standard CSS editors cannot edit the file
> 2.) Duplicate the content of the CSS file
> 3.) Usage of a a non-standard format for my CSS file.
> 4.) Re-use difficult. As I re-used the same CSS file for non DocBook based
> articles I would have to maintain 2 version of the file.
>
>  Would it be possible to use a standard css file? I generate the articles
> for my webpage from Docbook and all articles are pointing to a central CSS
> file. The "html.stylesheet" parameter was great for that.
>
> Best regards, Lars
>
> 2011/9/20 Bob Stayton <[email protected]>
>
>> **
>> Hi Lars,
>> Ah, I should have mentioned in the README about the changes for CSS.
>>
>> The 1.76.1 stylesheets added the capability of making cleaner HTML and
>> generating one or two CSS files when chunking.  That avoids the need for
>> copying the CSS file into place after building the HTML.  Because HTML5
>> pretty much needs the clean HTML and CSS, I turned on that feature for the
>> xhtml5 stylesheets.  See these three params for a description of how to make
>> cleaner HTML with CSS for styling:
>>
>>
>> http://docbook.sourceforge.net/release/xsl/current/doc/html/make.clean.html.html
>>
>>
>> http://docbook.sourceforge.net/release/xsl/current/doc/html/docbook.css.source.html
>>
>>
>> http://docbook.sourceforge.net/release/xsl/current/doc/html/custom.css.source.html
>>
>> I'll put this in the next README
>>
>> Bob Stayton
>> Sagehill Enterprises
>> [email protected]
>>
>>
>>
>> ----- Original Message -----
>> *From:* Lars Vogel <[email protected]>
>> *To:* DocBook Apps <[email protected]>
>> *Sent:* Monday, September 19, 2011 2:59 PM
>> *Subject:* [docbook-apps] "html.stylesheet" parameter in the xhtml5
>> Stylesheets
>>
>> Hi,
>>
>> the "html.stylesheet" parameter seem not to be working xhtml5. From the
>> output:
>>
>> [xslt] Writing docbook.css for article
>>
>> The output file also contains a reference to docbook.css. If I replace the
>> xhtml5 with the html stylesheets the correct css file is used in the
>> resulting html file.
>>
>> Is there anything I'm doing wrong?
>>
>> Best regards, Lars
>>
>> --
>> Lars
>> http://www.vogella.de - Eclipse, Android and Java Tutorials
>> http://www.twitter.com/vogella - Lars on Twitter
>>
>>
>
>
> --
> Lars
> http://www.vogella.de - Eclipse, Android and Java Tutorials
> http://www.twitter.com/vogella - Lars on Twitter
>
>


-- 
Lars
http://www.vogella.de - Eclipse, Android and Java Tutorials
http://www.twitter.com/vogella - Lars on Twitter

Reply via email to