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] How do I highlight inline text ?


Just one comment. 


On Sat, 10 Apr 2010 19:29:20 -0400
"Robert Lucente" <rlucente@pipeline.com> wrote:


> a.. Create a cascading style sheet w/ a file name of key_words.css w/
> the following entry
> 
> .key_words { background: yellow; }

Nit picking, use semantic names for the attribute?
I may be wrong here. 



a.. Create a DOS batch file setting the following parameters
> 
>   1.. emphasis.propagates.style: 1
> 
>   2.. html.stylesheet: file://localhost/C:\ypl\doc_book\key_words.css
> 
> a.. The DOS batch file name was using_role_as_class_name.bat and it
> contained the following contents
> 
> REM
> REM Set the classpath
> REM
> set classpath=.;
> REM
> REM
> REM Output contents of environment variables
> REM
> set
> REM
> REM
> REM Generate HTML from DocBook XML
> REM
> "C:\Program Files\Java\jre1.5.0_22\bin\java" ^
> 	-cp C:\ypl\java\xalan.jar;C:\ypl\java\serializer.jar
> org.apache.xalan.xslt.Process ^
> 	-v ^
> 	-xsl "C:\ypl\doc_book\xsl_1.75.2\html\chunk.xsl" ^
> 	-in using_role_as_class_name.doc_book_xml ^


This is my disagreement with how you have done it.

> 	-param "emphasis.propagates.style" "1" ^
> 	-param "html.stylesheet"
> "file://localhost/C:\ypl\doc_book\key_words.css" ^ -param "base.dir"
> "html/" EXIT

I do it differently is the best way I can say this.
1. I didn't know I could set parameters on the command line :-)
2. I always use an 'import' method to set my parameters


Create a normal stylesheet
First statement inside xsl:stylesheet
<xsl:import href='ypl/doc_book/xsl_1.75.2/html\chunk.xsl'

the set your parameters
<xsl:param name='emphasis.propagates.style' select='1'/>
<xsl:param name='html.stylesheet'
select="'/ypl/doc_book/key_words.css'"/>

</xsl:stylesheet>


Note the quoted css file
Note the forward / not \

HTH


-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk


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