Altova Mailing List Archives


RE: [xsl] how to close html tags : link, meta,...

From: "Julian Reschke" <julian.reschke@------>
To:
Date: 8/13/2003 6:51:00 AM
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Andrew Welch
> Sent: Wednesday, August 13, 2003 4:19 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [xsl] how to close html tags : link, meta,...
>
>
> > > I don't understand.  I'm it states that all element's in the xhtml
> dtd
> > > that are not declared as empty should have a closing tag.  Those
> that
> > > are declared as empty may or may not have a closing tag (in other
> words
> > > may or may not use the empty element syntax).
> >
> > Nope. It says:
> >
> > "Elements that are declared in the DTD as EMPTY can have an end tag or
> can
> > use empty element shorthand (see Empty Elements)."
> >
> > That is, "<foo></foo>" is allowed and "<foo/>" is allowed. Just
> "<foo>" is
> > not, because that's not wellformed XML.
>
> 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.

> ..

Julian

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


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.