Re: Perl + XML
by Attila Fülöp other posts by this author
Sep 20 2005 5:57AM messages near this date
view in the new Beta List Site
Re: Perl + XML
|
Re: Perl + XML
& XSLT Georg Rehm wrote:
> Basically, one of the main differences between SGML DTDs and XML DTDs
> is a feature called tag minimisation. This feature is not available in
> XML and was introduced in SGML to keep file sizes small'ish.
>
> In XML, an element declaration looks like
>
> <!ELEMENT a (b, c)>
>
> In SGML however, you have to specify whether tag minimisation may be used:
>
> <!ELEMENT a - - (b, c)>
>
> The two hyphens specify that both the start and the end tag must be present.
> Alternatively, you can use "O" (that's not "0", but "O" as in "_o_missible")
> to specify that only the start tag, only the end tag or both may be left
> out.
Ahh, thanks. I wonder how one could ommit both tags and still be able to
distinguish this element from text nodes.
> Tag minimisation is the reason why browsers do not insist that HTML
> elements such as <br>, <img> and <meta> have a corresponding end tag.
Unlike xhtml.
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Shouvanik Haldar
Geir Aalberg
Grant McLean
Mark - BLS CTR Thomas
Georg Rehm
Attila Fülöp
Attila Fülöp
Georg Rehm
|