[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" <andrew@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Feb 2002 10:03:26 -0000
msxml2.6 download
>So the best solution is to feed HTML into IE.

Always a good choice :)

Using xsl to get that html:

<span><xsl:value-of select="whatever"/></span> and 'whatever' is nothing,
msxml2.6 outputs

<span/>

whereas msxml3/4 and instant saxon outputs

<span></span>

The minimised <span/> highlights the problem (bug?) with css as Ive
mentioned, which is why I was asking if there was a way of forcing the
parser to not minimise.


cheers

andrew


===



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

No, it doesn't - for an XML parser.

> 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

When you feed (X)HTML into IE5.5, the normal HTML processor displays it.
Contrary to popular belief, IE is NOT an XHTML processor, so you can't rely
on XML's syntactical features.

So the best solution is to feed HTML into IE.


 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

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.