Rik wrote:
The way I understand it, pure separation of form and content comes only
when you format XML with XSLT so you can control absolutely, i.e. where
data is placed and IF it is displayed at all, perhaps even changing the
text (translations) etc. So if you write your pages in strict XHTML,
devices can use a more powerful restructuring language than CSS such as
XSLT or any XML parser in any scripting language which can format the
XHTML data anyway it wants.
I was surprised getting into CSS that DIVs had to be contained within
each other in order to get the relationships you want in the CSS (e.g.
if you want your "additional information" DIV to be a right-column box,
it has to be CONTAINED IN your "main" DIV but you don't have the
freedom to switch them around in CSS). I thought that I would just be
outputting a list of DIVs and let CSS format it anyway it wants, but
this isn't the case. If DIVs are not contained in each other, then CSS
is limited as to how it can format the information, so the "raw" HTML
data already has predetermined structure in it.
I was expecting in CSS something like the ANCHOR information you put in
objects in VBA so that you can anchor any DIV to any other DIV, thereby
letting CSS have free reign on the formatting.
Is this a limitation of CSS that runs against the form/content
separation philosophy?
Thanks,
Edward Tanguay
All my projects:
http://www.tanguay.info