LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-03-2004, 06:07 PM   #1
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
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">
...

Thanks!
 
Old 08-04-2004, 09:50 AM   #2
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Original Poster
Rep: Reputation: 15
anyone?
 
Old 08-04-2004, 05:54 PM   #3
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Original Poster
Rep: Reputation: 15
Unhappy

guess not
 
Old 08-05-2004, 09:12 AM   #4
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Original Poster
Rep: Reputation: 15
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

Last edited by SheldonPlankton; 08-05-2004 at 09:14 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scrollkeeper / docbook thjvdb Slackware 2 07-25-2005 12:17 PM
Need help installing docbook-xsl [docbook xsl stylesheet kmguy Linux - Software 0 09-10-2004 12:14 AM
Need DocBook help IgD Linux - Software 1 09-23-2003 08:53 PM
docbook xml help bulliver Linux - General 0 02-01-2003 12:27 AM
docbook tables specialmunky General 0 11-20-2002 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration