Hi Hussein,
On Fri, 2004-10-15 at 10:54, Hussein Shafie wrote:
> Eric van der Vlist wrote:
> In fact, I don't really understand what you intend to do if you had
> border: hidden.
>
Hmmm... triple checking the CSS2 rec, I see that border: hidden only
applies to collapsed border model (that you don't support in XXE).
> The easiest way to solve this is to send me a CSS styling tables using
> the way you imagine it can been done.
>
I have attached :
* schema.dtd, a small snippet extracted from the schema I am
working on.
* style-xxe.css : the CSS stylesheet for XXE that is my best
approach to table rendering. You'll see that it works pretty
well till you don't use "nombreDeRang?es"/"nombreDeColonnes"
attributes.
* style-hidden.css which is the way I *think* border:hidden (and
collapsing borders) should provide a simpler CSS and a better
rendering. I say "*think*" because the result isn't exactly what
I am expecting when I display it with Mozilla. Also, CSS2
doesn't provide any way to support colspan/rowspan attributes.
* document.xml, a sample document using style-xxe.css
* document-hidden.xml, the same document using style-hidden.css
> If it is easy and generic, there is no reason not to implement that quickly.
>
> --------------
> Other problem:
>
> I also don't understand how you can use rowsep,colsep with HTML tables
> in a DocBook-like DTD.
>
You're right, instead of rowsep,colsep I should have mentioned the
"rules" attribute.
> Let's take for example the DocBook 4.3 DTD, even if rowsep,colsep are
> allowed by the DTD for tables/informaltables, you should refrain from
> using these attributes when the tables/informaltables are in fact HTML
> tables (i.e. having the HTML content model and not having the CALS
> content model).
>
Right.
> But may be what you said does not apply to HTML tables in a DocBook-like
> DTD, but just to DocBook-like tables.
No, I had just mixed up the HTML and CALS models.
Thanks,
Eric
--
Don't you think all these XML schema languages should work together?
http://dsdl.org
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: schema.dtd
Type: text/x-dtd
Size: 692 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20041015/eb76433c/attachment.dtd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: style-xxe.css
Type: text/css
Size: 1934 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20041015/eb76433c/attachment.css
-------------- next part --------------
A non-text attachment was scrubbed...
Name: style-hidden.css
Type: text/css
Size: 1282 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20041015/eb76433c/attachment-0001.css
-------------- next part --------------
A non-text attachment was scrubbed...
Name: document.xml
Type: text/xml
Size: 2676 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20041015/eb76433c/attachment.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: document-hidden.xml
Type: text/xml
Size: 2680 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20041015/eb76433c/attachment-0001.xml