Hi.
The following elements don't 'inherit' the style, they are simply put
'inside' the <div/> element
So, to a web browser
<div style="font-weight:bold"/>
<div>foo</div>
is the same as
<div style="font-weight:bold">
<div>foo</div>
</div>
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Andrew Welch
Sent: Tuesday, September 10, 2002 4:27 PM
To: Xsl-List (E-mail)
Subject: tag minimisation
When elements like <div></div> get minimised by the processor to <div/>
it's *really* frustrating.
I cannot stress how annoying it is to find that because you have an
element in your data that is empty, you get a minimised ouput element
where all following elements 'inherit' the style...
For example:
<div style="font-weight:bold"/>
<div>foo</div>
will give you a bold 'foo'.
I appreciate that html/css is at fault, but surely its easy to add a
minimisation='no' extension until browsers catch up...? That or
continue the advice of 'add a space to the end of the element to prevent
it getting minimised'...
At the moment I can see no real benefit of enforcing minimisation.
cheers
andrew
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.385 / Virus Database: 217 - Release Date: 04/09/2002
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- tag minimisation
- Andrew Welch - Tue, 10 Sep 2002 11:25:34 -0400 (EDT)
- Américo Albuquerque - Tue, 10 Sep 2002 12:28:50 -0400 (EDT) <=
- Robert Koberg - Tue, 10 Sep 2002 12:51:23 -0400 (EDT)
- Michael Kay - Tue, 10 Sep 2002 13:18:32 -0400 (EDT)
- <Possible follow-ups>
- Andrew Welch - Tue, 10 Sep 2002 12:57:41 -0400 (EDT)
- bryan - Tue, 10 Sep 2002 17:40:09 -0400 (EDT)
|
|