This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: tag minimisation
- From: "Andrew Welch" <awelch at piper-group dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 10 Sep 2002 17:59:21 +0100
- Subject: RE: [xsl] tag minimisation
- Reply-to: xsl-list at lists dot mulberrytech dot com
> The following elements don't 'inherit' the style, they are simply put
> 'inside' the <div/> element
Sure, the trailing slash <../> isn't recognised so the minimised element
is treated as an opening one (effectively putting the following-sibling
'inside' as you say)
Another problem comes with expressions - this will work:
<div></div>
<div
style="position:relative;top:expression(-previousSibling.scrollHeight)">
but this causes the error 'line 0: object expected'
<div/>
<div
style="position:relative;top:expression(-previousSibling.scrollHeight)">
...really nasty in a large file.
Ultimately all of this pain could lifted by a few talented processor
writers ;)
Or of course, if anyone could tell me how to modify my own copy of
saxon/xalan to prevent minimisation, that would be equally great.
cheers
andrew
> -----Original Message-----
> From: Américo Albuquerque [mailto:aalbuquerque@viseu.ipiaget.pt]
> Sent: 10 September 2002 17:32
> To: xsl-list@lists.mulberrytech.com
> Subject: RE: [xsl] tag minimisation
>
>
> 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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of
> Andrew Welch
> Sent: Tuesday, September 10, 2002 4:27 PM
> To: Xsl-List (E-mail)
> Subject: [xsl] 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
>
>
>
>
>
> ---
> Incoming 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
>
>
---
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