discuss: Re: XML ... SGML
Subject:
Re: XML ... SGML
From:
Tabatha Persad ####@####.####
Date:
14 Apr 2002 21:17:51 -0000
Message-Id: <20020414211724.HUGP1901.rwcrmhc52.attbi.com@there>
Thanks, Alexander, I appreciate you clearing that up for me...
As I mentioned, I read early on that Docbook (XML I guess) needed those end
tags, and just made sure to get in the habit of it immediately. What you
are doing with perl sounds very interesting!
Tabatha
On Sunday 14 April 2002 17:07, Alexander Bartolich wrote:
> 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.