[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: tag minimisation

Subject: RE: tag minimisation
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
Date: Tue, 10 Sep 2002 18:32:09 +0100
RE:  tag minimisation
> test for text(), if it is there write out the element, else don't.

Sure.

However, with stylesheets totalling 80k, and DTD's specifying 1000's of
elements in all possible combinations (with entities containing
themselves... but thats another gripe) its a bit much to be expected to
test each node for text(), or for that matter sprinkle the stylesheet
with #160's.

Its such a small issue that causes huge problems, I can't see any
benefit whatsoever of enforcing minimisation at this time.






> -----Original Message-----
> From: Robert Koberg [mailto:rob@xxxxxxxxxx]
> Sent: 10 September 2002 17:52
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  tag minimisation
> 
> 
> Hi,
> 
> test for text(), if it is there write out the element, else don't.
> 
> -Rob
> 
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of 
> Andrew Welch
> > Sent: Tuesday, September 10, 2002 8:27 AM
> > 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





---
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.