This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: tag minimisation


> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Andrew Welch
> Sent: Thursday, February 07, 2002 9:48 AM
> To: xsl-list@lists.mulberrytech.com
> Subject: RE: [xsl] 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.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]