discuss: Re: XML ... SGML
Subject:
Re: XML ... SGML
From:
Alexander Bartolich ####@####.####
Date:
14 Apr 2002 21:08:27 -0000
Message-Id: <3CB9EF9F.2080009@gmx.at>
Tabatha Persad wrote:
> [...]
> I read that Docbook in general requires closing tags,
> whether XML or SGML, and that it was Linuxdoc that
> you could use shortened end tags.
No.
DocBook is a DTD.
It has nothing to with the underlying language.
> I am already in the habit of using full end tags anyway,
> but just thought I'd double check on the rules!
Alexander Bartolich wrote:
> > [...]
> > And empty items like <xref linkend="intro"> need a closing / in XML,
Empty items have no closing tag in SGML.
This is SGML:
<xref linkend="intro">
This is XML:
<xref linkend="intro"></xref>
XML knows an alternative syntax:
<xref linkend="intro"/>
And this is what my line Perl tries to produce.