Andreas Vox <[EMAIL PROTECTED]> schrieb am 10.02.05 17:38:10:
> 
> > > c) Produce illegal valign attributes which can be used directly for XHTML
> > 
> >   I will close my eyes here. 
> 
> 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)
> 
> So, now I think we could declare %local.common.attr to include "style" for
> all elements and use the CSS3 syntax&semantics.
> For PNG: style="valign: -7px"
> For EPS: style="valign: -5%"
> 

When Openjade/Jade produces an HTML file from SGML, it never uses the style 
attribute directly. It uses the class selector instead. That is, it says 
'class="NAVFOOTER"' and it's up to the user's CSS to display the footer with 
the correct/appropriate formatting. That's why one has to create a proper CSS 
to display Openjade's HTML in a way that is pleasing to the eye:

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

You will have to supply such a CSS with LyX, not let the user alone with the 
task of creating one himself.

I suggest you use the same procedure here too: define a class, say "inlinemath" 
and use the attribute 'class="inlinemath"' when you export to HTML But this 
requires a change in the DSSSL stylesheets (in the customization layer that you 
must also provide anyway). I suggest you use the stylesheets of my lyxtox 
project

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

(the stylesheet for rtf has a bug, which I am going to correct).

and modify them accordingly to insert a 'class="inlinemath"' in the HTML 
whenever you have an inline math in DocBook SGML. Do the same for XML too. Then 
modify the CSS for DocBook

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

to provide the right formatting attributes for the class "inlinemath" in HTML.

> I don't think there are any solutions yet which align inline math bitmaps
> properly for DocBook. If you know any, please let me know.
> 
> > 
> > > g) No idea. That's the advantage of EPS images, they are scalable...
> > 
> >   I agree also.
> 
> Let's ask Chris...
> 

I'm flattered. :-)

See above for my suggestion.

> 
> 1. Are there any CSS stylesheets for Docbook XML? I could only find ones for 
>     XHTML.
> 

Use the one I mentioned above:

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

It is written with SGML in mind, but I think the classes that Openjade produces 
are the same for SGML and XML, so it should work out-of-the box.

For a list of available stylesheets (to answer your question in a more complete 
way ;-) ), see the DocBook Wiki:

http://wiki.docbook.org/topic/DocBookStylesheets

There are pointers to DSSSL, XSLT and CSS stylesheets for DocBook.

Chris

PS. I am glad that DocBook-related topics have gained impetus again lately. :-)

-- 
Regards

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

Reply via email to