Re: FO. lists as tables. Re: Q: XML+XSL transforms to a print-ready format

Subject: Re: FO. lists as tables. Re: Q: XML+XSL transforms to a print-ready format
From: Håkon Wium Lie <howcome@xxxxxxxxxxxxxxxxx>
Date: Mon, 18 Oct 1999 11:55:05 +0200 (Europe de l'Ouest (Heure d'été))
Also sprach Steve Schafer:

 > > > Why is that? CSS2's "font" property is a mess.

 > >Your FUD-factor is high, could you explain your position a bit more?
 > >Until someone is able to change my mind, I consider the 'font'
 > >property a neat way of setting several properties at once.
 > 
 > I think Sebastian covered it well. Shortcut properties are in XSL
 > simply for compatibility with CSS. There is no real justification for
 > their inclusion on XML/XSL grounds, and they conflict with the design
 > goals of XML (see the XML rec, section 1.1, points 4, 5 and 10). They
 > make more work for the parser without adding any significant value.

Ok, so you're against shortcut properties in general, not 'font' in
particular. That's fair.

Note, however, that your style sheets will become significantly longer
if you abolish shorthand properties. E.g., this declaration:

  border: thick solid red;

is expanded into:

  border-top-width: thick;
  border-right-width: thick;
  border-bottom-width: thick;
  border-left-width: thick;
  border-top-style: solid;
  border-right-style: red;
  border-bottom-style: red;
  border-left-style: red;
  border-top-color: red;
  border-right-color: red;
  border-bottom-color: red;
  border-left-color: red;

Regards,

-h&kon

Chief Technology Officer                                Opera Software
Håkon Wium Lie                     http://www.opera.com/people/howcome
howcome@xxxxxxxxx                                gets you there faster


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread