Re: DOCBOOK-APPS: Modifying Qandaset Style in XSL

2001-07-27 Thread Eric Richardson

M.-A. DARCHE wrote:
 
 On 20010725 14:50 (Wednesday), Jeff McKenna wrote:
  I have a document with several Q and As and I am using QandASet;
  however I am unhappy with the way the Q and As are so bunched together
  in the html - no change in font or colour whatsoever.  I need a way to
  at least make the words in the question all bold, or a way to change the
  background colour of the cell containing the question so the questions
  stand out more.  I am a rookie in modifying XSL files, I've looked at
  qandaset.xsl but I have no clue where or how to start.  Thanks in
  advance for the help.
 
 I would rather suggest you to use CSS to handle this little layout
 problem in your generated HTML. This is CSS purpose to just do that.
 
 For example in a file called style.css
 ---
 body {
 margin: 1.1em 2em 5em 2em;
 }
 
 h1, h2, h3, h4, h5, h6 {
 /* Augmenting the space on top of headers */
 /* of an amount of 1/2 the orginal margin. */
 margin-top: 1.5em;
 }
 
 .sect1, .sect2 {
 /* Augmenting the space on top of headers */
 /* of an amount of 1/2 the orginal margin. */
 margin-top: 2em;
 }
 
 .question {
 font-weight: bold;
 }
 
 .answer {
 margin-left: 2em;
 margin-bottom: 3em;
 }
 ---
 
 And (if you use DSSSL) insert the following in your DSSSL stylesheet :
 
 xsl:param name=html.stylesheetstyle.css/xsl:param
 
 or (if you use XSL) that in your XSL stylesheet :
 
 (define %stylesheet%
 style.css)
 
 Real world example here :
 http://ma.darche.free.fr/AFUL/

Can't read French but it looks very nice!

Eric

--
To unsubscribe from this elist send a message with the single word
unsubscribe in the body to: [EMAIL PROTECTED]



DOCBOOK-APPS: Modifying Qandaset Style in XSL

2001-07-26 Thread Jeff McKenna


Hello,

I have a document with several Q and As and I am using QandASet;
however I am unhappy with the way the Q and As are so bunched together
in the html - no change in font or colour whatsoever.  I need a way to
at least make the words in the question all bold, or a way to change the
background colour of the cell containing the question so the questions
stand out more.  I am a rookie in modifying XSL files, I've looked at
qandaset.xsl but I have no clue where or how to start.  Thanks in
advance for the help.

Jeff



--
Jeff McKenna
GIS Specialist
DM Solutions Group Inc.
Ottawa, Ontario
http://www.dmsolutions.ca/


--
To unsubscribe from this elist send a message with the single word
unsubscribe in the body to: [EMAIL PROTECTED]



Re: DOCBOOK-APPS: Modifying Qandaset Style in XSL

2001-07-26 Thread M.-A. DARCHE

On 20010725 14:50 (Wednesday), Jeff McKenna wrote:
 I have a document with several Q and As and I am using QandASet;
 however I am unhappy with the way the Q and As are so bunched together
 in the html - no change in font or colour whatsoever.  I need a way to
 at least make the words in the question all bold, or a way to change the
 background colour of the cell containing the question so the questions
 stand out more.  I am a rookie in modifying XSL files, I've looked at
 qandaset.xsl but I have no clue where or how to start.  Thanks in
 advance for the help.

I would rather suggest you to use CSS to handle this little layout
problem in your generated HTML. This is CSS purpose to just do that.

For example in a file called style.css
---
body {
margin: 1.1em 2em 5em 2em;
}

h1, h2, h3, h4, h5, h6 {
/* Augmenting the space on top of headers */
/* of an amount of 1/2 the orginal margin. */
margin-top: 1.5em;
}


.sect1, .sect2 {
/* Augmenting the space on top of headers */
/* of an amount of 1/2 the orginal margin. */
margin-top: 2em;
}

.question {
font-weight: bold;
}

.answer {
margin-left: 2em;
margin-bottom: 3em;
}
---

And (if you use DSSSL) insert the following in your DSSSL stylesheet :

xsl:param name=html.stylesheetstyle.css/xsl:param


or (if you use XSL) that in your XSL stylesheet :

(define %stylesheet%
style.css)


Real world example here : 
http://ma.darche.free.fr/AFUL/


Cheers,

-- 
Marc-Aurèle DARCHE  http://ma.darche.free.fr
AFUL http://www.aful.org
Association Francophone des Utilisateurs de Linux/Logiciels Libres
French speaking Linux and Free Software Users' Association

--
To unsubscribe from this elist send a message with the single word
unsubscribe in the body to: [EMAIL PROTECTED]