discuss: Thread: SGML / XML


[<<] [<] Page 1 of 2 [>] [>>]
Subject: SGML / XML
From: David Lloyd ####@####.####
Date: 6 Mar 2001 11:53:05 -0000
Message-Id: <3AA4C4E4.5C7D5945@rebel.net.au>

I think it's time to explicitly request that people NOT use SGML
shortcuts, eg:

* please don't use </> - spell the ending tag out correctly

Besides, it's good form. When you get nsgmls spitting out 800 lines of
errors, you don't have to wander around trying to work out which </>
belongs to what starting tag....

What do we think?

DSL

-- 
Domine O venite O sacramentum eo deo
Domine O venite O sacramentum eo deo
Omnem crede diem tibi diluxisse supremum.
Sacramentum eo deo
Subject: Re: SGML / XML
From: Gregory Leblanc ####@####.####
Date: 6 Mar 2001 15:55:28 -0000
Message-Id:

On 06 Mar 2001 21:37:16 +1030, David Lloyd wrote:
> 
> I think it's time to explicitly request that people NOT use SGML
> shortcuts, eg:
> 
> * please don't use </> - spell the ending tag out correctly
> 
> Besides, it's good form. When you get nsgmls spitting out 800 lines of
> errors, you don't have to wander around trying to work out which </>
> belongs to what starting tag....
> 
> What do we think?

I've been saying this for a very long time, but there are a few voices
left that are opposed to looking at tomorrow's technologies before
they've taken over the market completely.  A decent XML editor removes
almost all of the burden of markup, and good markup is much easier to
read than poor markup.

    Greg

Subject: Re: SGML / XML
From: David Lawyer ####@####.####
Date: 7 Mar 2001 20:00:51 -0000
Message-Id: <20010307120013.B1149@lafn.org>

> On 06 Mar 2001 21:37:16 +1030, David Lloyd wrote:
> > 
> > I think it's time to explicitly request that people NOT use SGML
> > shortcuts, eg:

I don't agree.  Especially with linuxdoc where no tags are used for
paragraphs.  

On Tue, Mar 06, 2001 at 07:53:19AM -0800, Gregory Leblanc wrote:
> I've been saying this for a very long time, but there are a few voices
> left that are opposed to looking at tomorrow's technologies before
> they've taken over the market completely.  A decent XML editor removes
> almost all of the burden of markup, and good markup is much easier to
> read than poor markup.

That's fine if one is proficient at using an XML editor (and also has
such an editor).  But someone who writes a short HOWTO (perhaps only a
few pages) will not want to undertake the burden of learning the use
of a new editor.  Thus to minimize the burden of markup (in such a
case where one is entering the tags manually) one should use the
simplest markup with simple shortcuts.

			David Lawyer
Subject: Re: SGML / XML
From: Poet/Joshua Drake ####@####.####
Date: 7 Mar 2001 20:23:10 -0000
Message-Id: <Pine.LNX.4.30.0103071217030.32204-100000@crazypenguins.commandprompt.com>

>
>I don't agree.  Especially with linuxdoc where no tags are used for
>paragraphs.

But we aren't supposed to use Linuxdoc for new Articles.

>
>On Tue, Mar 06, 2001 at 07:53:19AM -0800, Gregory Leblanc wrote:
>> I've been saying this for a very long time, but there are a few voices
>> left that are opposed to looking at tomorrow's technologies before
>> they've taken over the market completely.  A decent XML editor removes
>> almost all of the burden of markup, and good markup is much easier to
>> read than poor markup.
>
>That's fine if one is proficient at using an XML editor (and also has
>such an editor).  But someone who writes a short HOWTO (perhaps only a
>few pages) will not want to undertake the burden of learning the use
>of a new editor.  Thus to minimize the burden of markup (in such a
>case where one is entering the tags manually) one should use the
>simplest markup with simple shortcuts.
>
>			David Lawyer
>
>_________________________
>http://list.linuxdoc.org/
>

-- 
--
<COMPANY>CommandPrompt	- http://www.commandprompt.com	</COMPANY>
<PROJECT>OpenDocs, LLC.	- http://www.opendocs.org	</PROJECT>
<PROJECT>LinuxPorts 	- http://www.linuxports.com     </PROJECT>
<WEBMASTER>LDP		- http://www.linuxdoc.org	</WEBMASTER>
--
Instead of asking why a piece of software is using "1970s technology,"
start asking why software is ignoring 30 years of accumulated wisdom.
--

Subject: Re: SGML / XML
From: "Greg Ferguson" ####@####.####
Date: 7 Mar 2001 20:57:30 -0000
Message-Id: <10103071551.ZM22430@hoop.timonium.sgi.com>

On Mar 7, 12:17pm, Poet/Joshua Drake wrote:
> Subject: Re: SGML / XML
> >
> >I don't agree.  Especially with linuxdoc where no tags are used for
> >paragraphs.
>
> But we aren't supposed to use Linuxdoc for new Articles.

If the author so chooses, Linuxdoc is fine/accepted. I try to
gently push them in the direction of DocBook, but it's certainly
not a requirement (or a "barrier to acceptance" as the case may be),
nor do I believe it ever should be.

r,
Ferg
Subject: Re: SGML / XML
From: David Merrill ####@####.####
Date: 7 Mar 2001 21:02:51 -0000
Message-Id: <20010307160137.A12370@lupercalia.net>

On Wed, Mar 07, 2001 at 03:51:26PM -0500, Greg Ferguson wrote:
> On Mar 7, 12:17pm, Poet/Joshua Drake wrote:
> > Subject: Re: SGML / XML
> > >
> > >I don't agree.  Especially with linuxdoc where no tags are used for
> > >paragraphs.
> >
> > But we aren't supposed to use Linuxdoc for new Articles.
> 
> If the author so chooses, Linuxdoc is fine/accepted. I try to
> gently push them in the direction of DocBook, but it's certainly
> not a requirement (or a "barrier to acceptance" as the case may be),
> nor do I believe it ever should be.

Yes, and experience has shown that we don't *need* to get fascist
about this issue. Since we started requesting DocBook, almost all new
documents have been received in DocBook, and many existing docs have
been converted. No need to make it an absolute.

-- 
Dr. David C. Merrill                     http://www.lupercalia.net
Linux Documentation Project                   ####@####.####
Collection Editor & Coordinator            http://www.linuxdoc.org
                                       Finger me for my public key

He that is giddy thinks the world turns round.
		-- William Shakespeare, "The Taming of the Shrew"
Subject: Re: SGML / XML
From: Poet/Joshua Drake ####@####.####
Date: 7 Mar 2001 23:12:30 -0000
Message-Id: <Pine.LNX.4.30.0103071505360.1760-100000@crazypenguins.commandprompt.com>

>not a requirement (or a "barrier to acceptance" as the case may be),
>nor do I believe it ever should be.

It absolutely should be. It is imperative to the growth of any
organization to have certain standards in place. Debian, Gnome, KDE all
have specific standards for code and documentation.

W

>
>r,
>Ferg
>

-- 
--
<COMPANY>CommandPrompt	- http://www.commandprompt.com	</COMPANY>
<PROJECT>OpenDocs, LLC.	- http://www.opendocs.org	</PROJECT>
<PROJECT>LinuxPorts 	- http://www.linuxports.com     </PROJECT>
<WEBMASTER>LDP		- http://www.linuxdoc.org	</WEBMASTER>
--
Instead of asking why a piece of software is using "1970s technology,"
start asking why software is ignoring 30 years of accumulated wisdom.
--

Subject: Re: SGML / XML
From: "Greg Ferguson" ####@####.####
Date: 7 Mar 2001 23:17:15 -0000
Message-Id: <10103071811.ZM22718@hoop.timonium.sgi.com>

On Mar 7,  3:06pm, Poet/Joshua Drake wrote:
> Subject: Re: SGML / XML
> >not a requirement (or a "barrier to acceptance" as the case may be),
> >nor do I believe it ever should be.
>
> It absolutely should be. It is imperative to the growth of any
> organization to have certain standards in place. Debian, Gnome, KDE all
> have specific standards for code and documentation.

Absolutely (wrt the standards remark); and we do have standards:

- documented in the LDP Author Guide
- exhibited by the available SGML documents templates,
- and as noted by:

  "The LDP officially supports:

       SGML - Linuxdoc, DocBook v3.x, DocBook v4.x
       XML  - DocBook v4.1.2"

r,
Ferg
Subject: Re: SGML / XML
From: David Lloyd ####@####.####
Date: 7 Mar 2001 23:39:45 -0000
Message-Id: <3AA6C838.900969EE@rebel.net.au>

David et al:

> > On 06 Mar 2001 21:37:16 +1030, David Lloyd wrote:
> > >
> > > I think it's time to explicitly request that people NOT use SGML
> > > shortcuts, eg:
> 
> I don't agree.  Especially with linuxdoc where no tags are used for
> paragraphs.

Would you accept a rewrite that says something like:

"If you write a document using DocBook, please try to:

* end all closed tags with their full ending tags:
 eg: <para>an inane paragraph</para> INSTEAD OF
     <para>an inane paragraph</>

* use all lower-case for tag names:
 eg: <title>new howto</title> INSTEAD OF
     <Title>new howto</Title>

* quote ALL attributes:
 eg: <xref linkend="my.link">
"

This isn't bullying, telling people to use DocBook and such. 

> That's fine if one is proficient at using an XML editor (and also has
> such an editor).  But someone who writes a short HOWTO (perhaps only a
> few pages) will not want to undertake the burden of learning the use
> of a new editor.  Thus to minimize the burden of markup (in such a
> case where one is entering the tags manually) one should use the
> simplest markup with simple shortcuts.

But should DocBook go XML only - which I sense is where it is heading -
rendering DocBook SGML with abbreviations can be quite a task. There are
"normalisation" programs (sgmlnorm I think is the name of one) the ones
I've seen mangle the format of the document produced. That is to say,
they take a nicely indented SGML documented and make some dog's dinner
that is good XML but source code unreadable.

If someone is writing a short HOWTO, they could ask someone else to
write it up in properly formatted DocBook (or LinuxDoc) thereby
releasing them from any markup burden at all...

DSL
-- 
Domine O venite O sacramentum eo deo
Domine O venite O sacramentum eo deo
Omnem crede diem tibi diluxisse supremum.
Sacramentum eo deo
Subject: Re: SGML / XML
From: Nik Clayton ####@####.####
Date: 8 Mar 2001 15:03:11 -0000
Message-Id: <20010308132038.A62300@canyon.nothing-going-on.org>

On Thu, Mar 08, 2001 at 10:16:00AM +1030, David Lloyd wrote:
> > That's fine if one is proficient at using an XML editor (and also has
> > such an editor).  But someone who writes a short HOWTO (perhaps only a
> > few pages) will not want to undertake the burden of learning the use
> > of a new editor.  Thus to minimize the burden of markup (in such a
> > case where one is entering the tags manually) one should use the
> > simplest markup with simple shortcuts.
> 
> But should DocBook go XML only - which I sense is where it is heading -

DocBook 5.0 will be XML only (sort of).

See http://www.oasis-open.org/docbook/meetings/min20001207.html under
"Discuss plans for DocBook 5.0"

> rendering DocBook SGML with abbreviations can be quite a task. There are
> "normalisation" programs (sgmlnorm I think is the name of one) the ones
> I've seen mangle the format of the document produced. That is to say,
> they take a nicely indented SGML documented and make some dog's dinner
> that is good XML but source code unreadable.

We badly need a generic version of Dave Ragget's tidy program.

Oh yes, "Hi Folks".

N
-- 
FreeBSD: The Power to Serve             http://www.freebsd.org/
FreeBSD Documentation Project           http://www.freebsd.org/docproj/

          --- 15B8 3FFC DDB4 34B0 AA5F  94B7 93A8 0764 2C37 E375 ---

--> -->
 
 
<type 'exceptions.IOError'>
Python 2.5.2: /usr/bin/python
Fri May 17 09:44:25 2024

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /opt/ezmlm-browse-0.20/<string> in ()
 /opt/ezmlm-browse-0.20/main.py in main()
  424 
  425         if path is not None:
  426                 main_path(path)
  427         else:
  428                 main_form()
global main_form = <function main_form at 0x8439c6c>
 /opt/ezmlm-browse-0.20/main.py in main_form()
  378         except ImportError:
  379                 die(ctxt, "Invalid command")
  380         module.do(ctxt)
  381 
  382 def main():
module = <module 'commands.showthread' from '/opt/ezmlm-browse-0.20/commands/showthread.pyc'>, module.do = <function do at 0x844f17c>, global ctxt = {'HTTP_X_FORWARDED_SERVER': 'glitch', 'HTTP_REFE...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}
 /opt/ezmlm-browse-0.20/commands/showthread.py in do(ctxt={'HTTP_X_FORWARDED_SERVER': 'glitch', 'HTTP_REFE...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'})
    9         ctxt.update(ezmlm.thread(ctxt[THREADID]))
   10         header(ctxt, 'Thread: ' + ctxt[SUBJECT], 'showthread')
   11         do_list(ctxt, 'msgs', ctxt[MSGSPERPAGE], ctxt[MESSAGES],
   12                         lambda:sub_showmsg(ctxt, ctxt[MSGNUM]))
   13         footer(ctxt)
global sub_showmsg = <function sub_showmsg at 0x84391ec>, ctxt = {'HTTP_X_FORWARDED_SERVER': 'glitch', 'HTTP_REFE...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, global MSGNUM = 'msgnum'
 /opt/ezmlm-browse-0.20/globalfns.py in do_list(ctxt={'HTTP_X_FORWARDED_SERVER': 'glitch', 'HTTP_REFE...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, name='msgs', perpage=10, values=[{'author': u'David Lloyd', 'authorid': 'fnjddjfijpdpdpdeeddm', 'date': '6 Mar 2001 11:53:05 -0000', 'month': 200103, 'msgnum': 271, 'subject': u'SGML / XML', 'threadid': 'ilbheomhaccefonpcjem', 'timestamp': 983879585.0}, {'author': u'Gregory Leblanc', 'authorid': 'hmmcgcnlpcbfjaajijcb', 'date': '6 Mar 2001 15:55:28 -0000', 'month': 200103, 'msgnum': 274, 'subject': u'Re: SGML / XML', 'threadid': 'ilbheomhaccefonpcjem', 'timestamp': 983894128.0}, {'author': u'David Lawyer', 'authorid': 'claiepedajakajhoajgg', 'date': '7 Mar 2001 20:00:51 -0000', 'month': 200103, 'msgnum': 281, 'subject': u'Re: SGML / XML', 'threadid': 'ilbheomhaccefonpcjem', 'timestamp': 983995251.0}, {'author': u'Poet/Joshua Drake', 'authorid': 'mlhhfjhdhakfacneibbl', 'date': '7 Mar 2001 20:23:10 -0000', 'month': 200103, 'msgnum': 282, 'subject': u'Re: SGML / XML', 'threadid': 'ilbheomhaccefonpcjem', 'timestamp': 983996590.0}, {'author': u'Greg Ferguson', 'authorid': 'jkmfaaghnlhdjhhbndhb', 'date': '7 Mar 2001 20:57:30 -0000', 'month': 200103, 'msgnum': 283, 'subject': u'Re: SGML / XML', 'threadid': 'ilbheomhaccefonpcjem', 'timestamp': 983998650.0}, {'author': u'David Merrill', 'authorid': 'lagflfnealnmhgbpnfbe', 'date': '7 Mar 2001 21:02:51 -0000', 'month': 200103, 'msgnum': 284, 'subject': u'Re: SGML / XML', 'threadid': 'ilbheomhaccefonpcjem', 'timestamp': 983998971.0}, {'author': u'Poet/Joshua Drake', 'authorid': 'mlhhfjhdhakfacneibbl', 'date': '7 Mar 2001 23:12:30 -0000', 'month': 200103, 'msgnum': 285, 'subject': u'Re: SGML / XML', 'threadid': 'ilbheomhaccefonpcjem', 'timestamp': 984006750.0}, {'author': u'Greg Ferguson', 'authorid': 'jkmfaaghnlhdjhhbndhb', 'date': '7 Mar 2001 23:17:15 -0000', 'month': 200103, 'msgnum': 286, 'subject': u'Re: SGML / XML', 'threadid': 'ilbheomhaccefonpcjem', 'timestamp': 984007035.0}, {'author': u'David Lloyd', 'authorid': 'fnjddjfijpdpdpdeeddm', 'date': '7 Mar 2001 23:39:45 -0000', 'month': 200103, 'msgnum': 287, 'subject': u'Re: SGML / XML', 'threadid': 'ilbheomhaccefonpcjem', 'timestamp': 984008385.0}, {'author': u'Nik Clayton', 'authorid': 'mlbciphoaejhkejnbcfe', 'date': '8 Mar 2001 15:03:11 -0000', 'month': 200103, 'msgnum': 288, 'subject': u'Re: SGML / XML', 'threadid': 'ilbheomhaccefonpcjem', 'timestamp': 984063791.0}], peritem=<function <lambda> at 0x844f304>)
  128                 write(template % ctxt)
  129                 if peritem:
  130                         peritem()
  131                 ctxt[ROW] += 1
  132 
peritem = <function <lambda> at 0x844f304>
 /opt/ezmlm-browse-0.20/commands/showthread.py in ()
    9         ctxt.update(ezmlm.thread(ctxt[THREADID]))
   10         header(ctxt, 'Thread: ' + ctxt[SUBJECT], 'showthread')
   11         do_list(ctxt, 'msgs', ctxt[MSGSPERPAGE], ctxt[MESSAGES],
   12                         lambda:sub_showmsg(ctxt, ctxt[MSGNUM]))
   13         footer(ctxt)
global sub_showmsg = <function sub_showmsg at 0x84391ec>, ctxt = {'HTTP_X_FORWARDED_SERVER': 'glitch', 'HTTP_REFE...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, global MSGNUM = 'msgnum'
 /opt/ezmlm-browse-0.20/globalfns.py in sub_showmsg(ctxt={'HTTP_X_FORWARDED_SERVER': 'glitch', 'HTTP_REFE...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, msgnum=288)
  229         format_timestamp(ctxt, ctxt)
  230         write(html('msg-header') % ctxt)
  231         rec_showpart(ctxt, msg, 0)
  232         write(html('msg-footer') % ctxt)
  233         ctxt.pop()
global rec_showpart = <function rec_showpart at 0x84391b4>, ctxt = {'HTTP_X_FORWARDED_SERVER': 'glitch', 'HTTP_REFE...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, msg = <email.message.Message instance at 0x84b238c>
 /opt/ezmlm-browse-0.20/globalfns.py in rec_showpart(ctxt={'HTTP_X_FORWARDED_SERVER': 'glitch', 'HTTP_REFE...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, part=<email.message.Message instance at 0x84b238c>, partnum=1)
  205                 else:
  206                         for p in part.get_payload():
  207                                 partnum = rec_showpart(ctxt, p, partnum+1)
  208         else:
  209                 write(html('msg-sep') % ctxt)
partnum = 1, global rec_showpart = <function rec_showpart at 0x84391b4>, ctxt = {'HTTP_X_FORWARDED_SERVER': 'glitch', 'HTTP_REFE...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, p = <email.message.Message instance at 0x84b23ac>
 /opt/ezmlm-browse-0.20/globalfns.py in rec_showpart(ctxt={'HTTP_X_FORWARDED_SERVER': 'glitch', 'HTTP_REFE...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, part=<email.message.Message instance at 0x84b23ac>, partnum=2)
  208         else:
  209                 write(html('msg-sep') % ctxt)
  210                 sub_showpart(ctxt, part)
  211         return partnum
  212 
global sub_showpart = <function sub_showpart at 0x8439144>, ctxt = {'HTTP_X_FORWARDED_SERVER': 'glitch', 'HTTP_REFE...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, part = <email.message.Message instance at 0x84b23ac>
 /opt/ezmlm-browse-0.20/globalfns.py in sub_showpart(ctxt={'HTTP_X_FORWARDED_SERVER': 'glitch', 'HTTP_REFE...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, part=<email.message.Message instance at 0x84b23ac>)
  164         type = ctxt[TYPE] = part.get_content_type()
  165         ctxt[FILENAME] = part.get_filename()
  166         template = html('msg-' + type.replace('/', '-'))
  167         if not template:
  168                 template = html('msg-' + type[:type.find('/')])
global template = <function template at 0x8431e9c>, global html = <function html at 0x8431ed4>, type = 'application/pgp-signature', type.replace = <built-in method replace of str object at 0x84b1918>
 /opt/ezmlm-browse-0.20/globalfns.py in html(name='msg-application-pgp-signature')
   40 
   41 def html(name):
   42         return template(name + '.html')
   43 
   44 def xml(name):
global template = <function template at 0x8431e9c>, name = 'msg-application-pgp-signature'
 /opt/ezmlm-browse-0.20/globalfns.py in template(filename='msg-application-pgp-signature.html')
   31         except IOError:
   32                 if not _template_zipfile:
   33                         _template_zipfile = zipfile.ZipFile(sys.argv[0])
   34                 try:
   35                         f = _template_zipfile.open(n).read()
global _template_zipfile = None, global zipfile = <module 'zipfile' from '/usr/lib/python2.5/zipfile.pyc'>, zipfile.ZipFile = <class zipfile.ZipFile at 0x83caa7c>, global sys = <module 'sys' (built-in)>, sys.argv = ['-c', '/opt/ezmlm-browse-0.20']
 /usr/lib/python2.5/zipfile.py in __init__(self=<zipfile.ZipFile instance at 0x84aef8c>, file='-c', mode='r', compression=0, allowZip64=False)
  337             self.filename = file
  338             modeDict = {'r' : 'rb', 'w': 'wb', 'a' : 'r+b'}
  339             self.fp = open(file, modeDict[mode])
  340         else:
  341             self._filePassed = 1
self = <zipfile.ZipFile instance at 0x84aef8c>, self.fp = None, builtin open = <built-in function open>, file = '-c', modeDict = {'a': 'r+b', 'r': 'rb', 'w': 'wb'}, mode = 'r'

<type 'exceptions.IOError'>: [Errno 2] No such file or directory: '-c'
      args = (2, 'No such file or directory')
      errno = 2
      filename = '-c'
      message = ''
      strerror = 'No such file or directory'