[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 17:25:28 +0200
xhtml close meta
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Andrew Welch
> Sent: Wednesday, August 13, 2003 5:14 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  how to close html tags : link, meta,...
>
>
>
> > > Sorry to go on but...
> > >
> > > <div> *is not* declared as empty, so it must be <div></div>
> > >
> > > <img> *is* declared as empty, therefore it can be <img/> or
> <img></img>
> > >
> > > That is my reading of the spec, please someone tell me if I am
> wrong.
> >
> > In which case I'd say the spec needs to be fixed.
> >
> > Either div has required content, in which case both "<div/>" and
> > "<div></div>" would be non-valid.
> >
> > If content is not required (which is the case), both notations MUST be
> > allowes, otherwise XHTML would not conform to the XML spec.
>
>
> There's a difference.  One is well-formed xml, the other is valid xhtml.
>
> <div/> is well formed xml, but not valid xhtml.

<div/> is well formed XML and valid according to the XHTML DTD.

> <div></div> is both well-formed xml, and valid xhtml.

No no no. It really doesn't matter for validity.

> One involves a dtd the other doesn't.  There's nothing wrong with the
> spec, its just when people see well-formed html they think its xhtml,
> which it isnt.

Of course it isn't.

You probably meant to say "well-formed xml". And yes, it isn't automatically
valid. But in this case it is.

Please prove me wrong with the example being rejected by an XML parser using
the XHTML DTD.

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.