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

RE: tag minimisation

Subject: RE: tag minimisation
From: "Snow, Corey" <CSNOW@xxxxxxxxx>
Date: Thu, 7 Feb 2002 09:08:25 -0800
RE:  tag minimisation
The serialization issue shouldn't arise with any of the XML parsers if
you're trying to produce HTML. Do you have an <xsl:output method="html"/>
element in your stylesheet? If you want to ouput HTML (which is not
well-formed) then you'll need to specify this.

For XML, tag structure for empty elements is irrelevant.

Regards,

Corey Snow

> -----Original Message-----
> From: Andrew Welch [mailto:andrew@xxxxxxxxxxxxxxxxxxxxxxx]
> Sent: Thursday, February 07, 2002 12:48 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  tag minimisation
> 
> 
> 
> 
> >No it is entirely up to the system how it linearises empty elements:
> >some XSLT systems use <p/> some <p></p> .Since every XML system will
> >treet these identically it shouldn't matter which you get.
> 
> Well, it does matter.
> 
> I will give you some code:
> 
> <style>
>   span p {margin-left:0em}
>   p {margin-left:2.5em}
> </style>
> <body>
>   <span></span>
>   <p>Hello</p>
>   <span/>
>   <p>world</p>
> </body>
> 
> The output you will get in IE5.5 is:
> 
> 	Hello
> World
> 
> The <p> after the minimised <span/> does not pick up its CSS 
> style properly.
> From a few tests, I found that msxml2.6 converted 
> <span></span> to <span/>
> whilst MSXML3 and Instant Saxon left it as <span></span> (and 
> not causing a
> problem).
> 
> Ive tried converting the above to xhtml, but that doesnt 
> solve the problem
> either.
> 
> Has anyone had similar problems with tag minimisation, and 
> any possible
> solutions?
> 
> 
> 
> cheers
> 
> andrew
> 
> ===
> 
> 
> 
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of David
> Carlisle
> Sent: Wednesday, February 06, 2002 5:02 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  tag minimisation
> 
> 
> 
> > whereas xsl proper keeps it as <p></p>.
> 
> No it is entirely up to the system how it linearises empty elements:
> some XSLT systems use <p/> some <p></p> .Since every XML system will
> treet these identically it shouldn't matter which you get.
> 
> David
> 
> _____________________________________________________________________
> This message has been checked for all known viruses by Star Internet
> delivered through the MessageLabs Virus Scanning Service. For further
> information visit http://www.star.net.uk/stats.asp or 
> alternatively call
> Star Internet for details on the Virus Scanning Service.
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

#########################################################
The information contained in this e-mail and subsequent attachments may be privileged, 
confidential and protected from disclosure.  This transmission is intended for the sole 
use of the individual and entity to whom it is addressed.  If you are not the intended 
recipient, any dissemination, distribution or copying is strictly prohibited.  If you 
think that you have received this message in error, please e-mail the sender at the above 
e-mail address.
#########################################################

 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.