LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   DocBook question (https://www.linuxquestions.org/questions/linux-software-2/docbook-question-213074/)

SheldonPlankton 08-03-2004 06:07 PM

DocBook question
 
Hi All,

I want to get my graphics working for a <important> tag I am using in my doc.

I added this to my CSS (a file named notes.css) ...

Code:

DIV.IMPORTANT {
        image: url( "images/important.png" );
}

I generate my html like so ...
Code:

$ xsltproc -o mkCDrec_RH9_install.html \
--stringparam  html.stylesheet "notes.css" \ 
/usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl \
mkCDrec_RH9_install.xml

But I the html that gets generated is this ...
Code:

<div class="important" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Important!</h3><p>
It is important to remove the line &quot;/home/*&quot; from the EXCLUDE_LIST in the Config.sh file or you not be able to restore any of the home directories!!!
                                        </p></div>

Why don't I see something like this ...
Code:

<img src="images/important.png" alt="2" border="0">
...
:confused:
Thanks!

SheldonPlankton 08-04-2004 09:50 AM

anyone?

SheldonPlankton 08-04-2004 05:54 PM

guess not :(

SheldonPlankton 08-05-2004 09:12 AM

Well I finally figured out what I need to do .... not like anyone here gives a rip but I changed my Makefile like so ...
Code:

$ cat Makefile
objects = mkCDrec_RH9_backup.html mkCDrec_RH9_install.html mkCDrec_RH9_restore_test.html
all: $(objects)
 
$(objects): %.html: %.xml
        xsltproc -o $@ --stringparam admon.graphics 1 --stringparam  html.stylesheet "notes.css" /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl $<
 
clean:
        find . -name '*html' -exec rm {} \;
 
install:
        su root -c"find . -name '*html' -exec cp {} /var/www/NOTES \; ; if [ -e notes.css ]; then cp notes.css /var/www/NOTES/ ; fi"

The (--stringparam admon.graphics 1) does the trick


All times are GMT -5. The time now is 11:52 PM.