From: SourceForge.net <no...@so...> - 2010-09-16 01:28:15
|
Bugs item #3067212, was opened at 2010-09-15 20:30 Message generated for change (Comment added) made by oksmith13 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=3067212&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: output: ePub Status: Open Resolution: None Priority: 4 Private: No Submitted By: Oliver K. Smith (oksmith13) Assigned to: Keith Fahlgren (abdelazer) Summary: html.stylesheet parameter and ePub Initial Comment: I'm using release 1.76.0. When using: epub/docbook.xsl to generate XHTML for ePub, the parameter: html.stylesheet does not appear to work. I've had to do the following: <xsl:template name="user.head.content"> <style type="text/css"> <xsl:comment> @import "xhtml_style.css" </xsl:comment> </style> </xsl:template> which does work. Please fix for 1.76.1 Thanks. ---------------------------------------------------------------------- >Comment By: Oliver K. Smith (oksmith13) Date: 2010-09-15 21:28 Message: You are correct. It works from the command line using: xsltproc --stringparam html.stylesheet template.css It wasn't working for me when I used a customization layer and did the following: <xsl:param name="html.stylesheet" select="template.css"/> It does work with this: <xsl:param name="html.stylesheet" select="'template.css'"/> It would appear that the extra single quotes are necessary. (You might need to look carefully at the above with a fixed width font.) You can consider this case closed. Sorry to "bug" you. I made this mistake because the examples in Chapter 12. HTML customizations of DocBook XSL: The Complete Guide, Fourth Edition. do not suggest the need for the single quotes. However, the example in Chapter 9. Customization methods make it clear the extra single quotes are needed. Thanks for all your efforts. ---------------------------------------------------------------------- Comment By: Keith Fahlgren (abdelazer) Date: 2010-09-15 20:47 Message: I'm not able to reproduce: $ xsltproc --stringparam html.stylesheet template.css docbook-xsl-1.76.0/epub/docbook.xsl tiny.xml Writing OEBPS/index.html for section(a) Writing OEBPS/toc.ncx Writing OEBPS/content.opf Writing META-INF/container.xml $ xmllint --format OEBPS/index.html | grep css <link rel="stylesheet" type="text/css" href="template.css"/> Would you please provide more details about your environment? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=3067212&group_id=21935 |