Comments below start w/ [RL] -----Original Message----- From: Dave Pawson [mailto:da...@dpawson.co.uk] Sent: Sunday, April 11, 2010 2:42 AM To: Robert Lucente Cc: docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] How do I highlight inline text ?
Just one comment. On Sat, 10 Apr 2010 19:29:20 -0400 "Robert Lucente" <rluce...@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. [RL Start] Nathalie Sequeira on April 07, 2010 5:31 PM recommended the following <emphasis role="semantic_function_of_the_emphasis">some text</emphasis> I thought that this was way cool. Then if I wanted to change the how the semantic was displayed, just change the CSS. Humm. What am I missing ? [RL End] 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 \ [RL Start] I don't know anything about XSL. I will add it to the stuff to go learn. Is putting parameters in XSL just a best practice thing ? It makes sense. This way you have all your styling knobs in one spot as opposed to 2 different spots. Thanks for the help. [RL End] HTH -- regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org