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 ?


Hi guys,

Thanks for all your help. I got it to work.

Request a quick review to make sure that I did not do something silly.

In case the email below is hard to read, please go to

http://www.ypl.com//build_windows_machines/install_applications/doc_book_to_html/html_deep/ch09s03.html

  • Create a cascading style sheet w/ a file name of key_words.css w/ the following entry

    .key_words { background: yellow; }
  • Create a file containing DocBook xml tags w/ a file name of using_role_as_class_name.doc_book_xml w/ the following entries

    <!DOCTYPE book SYSTEM "file://localhost/C:\ypl\doc_book\dtd_xml_4.5b1\docbookx.dtd">
    
    <book>
    
    <title>
    Some Book Title
    </title> 
    
    <chapter>
    
    <title>
    Some Chapter Title
    </title>
    
    <para>
    First sentence with no highlighting.
    </para>
    
    <para>
    Second sentence with highlighting which <emphasis role="key_words">starts here and goes until here</emphasis> but does not highlight entire sentence.
    </para>
    
    </chapter>
    
    </book>
  • Create a DOS batch file setting the following paramters

    1. emphasis.propagates.style: 1

      1. html.stylesheet: file://localhost/C:\ypl\doc_book\key_words.css

      2. 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 ^
        	-param "emphasis.propagates.style" "1" ^
        	-param "html.stylesheet" "file://localhost/C:\ypl\doc_book\key_words.css" ^
        	-param "base.dir" "html/"
        EXIT
        

      3. -----Original Message-----
        From: Dave Pawson [mailto:davep@dpawson.co.uk]
        Sent: Thursday, April 08, 2010 6:50 AM
        To: docbook-apps@lists.oasis-open.org
        Subject: Re: [docbook-apps] How do I highlight inline text ?


        On Thu, 8 Apr 2010 06:13:09 -0400
        "Robert Lucente" <rlucente@pipeline.com> wrote:

        > Thanks for reminding me about color blind people and the link to the
        > colors.
        >
        > Since I am interested in "Highlight text" (text with a background
        > color), I should really be using the CSS background-color property.
        > My bad.

        No, not bad. My favourite quote. Everyone needs the idiot sheet....
        at least once.

        I certainly did. I'm now a confirmed  CSS convert. Just
        irritated that it hasn't kept pace with other developments,
        or at least not in the browsers.
          Its nearly brilliant. It's certainly good.

        regards

        --

        regards

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

        ---------------------------------------------------------------------
        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]