Andreas Vox  schrieb am 10.02.05 19:11:03:
>
> Jose' Matos writes:
>
> .....
> > > I did some research. It's in the semantics for "CSS3.lines". CSS2 and
> > > CSS1 support valign without length or percentage values (which is not
> > > better than the default)
> >
> > The problem as usual, it that there aren't many browsers who support the
> > complete specification of css3, and probably some of them have bugs (hint:
> > exploder). Been there, done that.
>
> Hah! You think I think any browser will support that properly? :-P
> I just want to find a way to pass the information to the XML file without
> breaking too many standards. How any stylesheets interpret this is up to
> them.
>

Risking to become a pain in the a$$, let me repeat:

DON'T mix presentational markup with structural! Provide a customization layer 
instead. Here is the general procedure:

http://docbook.sourceforge.net/release/dsssl/current/doc/custom.html

and here is an example:

http://www.karakas-online.de/mySGML/explain-dsssl-stylesheets.html

In plain words: just copy the .dsl files mentioned in

http://www.karakas-online.de/mySGML/explain-dsssl-stylesheets.html

and do your changes there - i.e. use DSSSL to tell the processor (Openjade) to 
create a 'class="inlinemath"' attribute in the HTML tag of the rendered inline 
math image. Then take the CSS for DocBook

http://www.karakas-online.de/mySGML/ck-style.css

explained in

http://www.karakas-online.de/myLinuxTips/css-for-docbook.html
http://www.karakas-online.de/mySGML/explain-css.html

and add a class selector for the "inlinemath" class. Add any inline math 
related HTML formatting there:

.inlinemath {
Put the formatting attributes here.
}

Follow a similar procedure for XML.

A great help are the CSS tutorials in

http://css.maxdesign.com.au

which describe CSS very intuitively.

Chris

-- 
Regards

Chris Karakas
http://www.karakas-online.de

Reply via email to