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

RE: how to close html tags : link, meta,...

Subject: RE: how to close html tags : link, meta,...
From: "Julian Reschke" <julian.reschke@xxxxxx>
Date: Wed, 13 Aug 2003 11:36:46 +0200
close html tag
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Andrew Welch
> Sent: Wednesday, August 13, 2003 10:30 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  how to close html tags : link, meta,...
>
>
>
> > > hi,
> > > i'm using xslt to transform an xml file into a html file
> > > my problem is that i really need to have the empty tags( meta, link,
> > > img,...) closed and I don't know how to do this...
> >
> > In which case you shouldn't transform to HTML. Use the "xml" output
> > method:
> >
> > <xsl:output method="xml" />
>
> You will discover that using the xml output method will solve this
> particular issue, but cause you no end of html style issues, such as:
>
> <div style="background:blue">
>   <div/>
> </div>
>
> Will make everything after the outer <div> have a blue background.  Of
> course this is perfectly legal xml, and to any xml aware receiving
> application <div/> and <div></div> are identical - but not to IE.  IE
> will treat the empty element <div/> as an opening tag, the following
> </div> as its closing tag, and then everything that follows as children
> of the outer <div style="background:blue">.
> ...

This just means that it doesn't make sense to send XHTML to IE, because it
doesn't support it. Where's the news here?

Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760


 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.