Gentoo Archives: gentoo-dev

From: Ciaran McCreesh <ciaranm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] GLEP ??: Critical News Reporting
Date: Fri, 04 Nov 2005 18:46:13
Message-Id: 20051104183922.699f3dc0@snowdrop.home
In Reply to: Re: [gentoo-dev] GLEP ??: Critical News Reporting by Xavier Neys
1 On Fri, 04 Nov 2005 15:26:28 +0100 Xavier Neys <neysx@g.o> wrote:
2 | > Oh? Our GuideXML to HTML conversion is thousands of lines of code...
3 |
4 | Plain wrong, but you have always made it clear that you are not only
5 | biased against XML for anything, but also very much XML challenged.
6
7 Run a wc -l on guide.xsl sometime. Either wc is lying or that alone is
8 thousands of lines of code.
9
10 | Don't worry, some are even worse than you are, worse enough to claim
11 | that XML is hard to parse because "XML files from a programming
12 | perspective require extra logic to parse. Compare the following key
13 | value pair and xml tag pseudo parsing logic for configuration:
14 | <tag1>entry</tag1>
15 | Hit a >, tag1 as realized tag name, read until <, read ahead one to
16 | ensure a closing slash, read until > to get the tag name, compare tag
17 | name with previous tag name to see what tag it's closing. store value
18 | attached to tag1."
19
20 That is not parsing XML. That is parsing some arbitrary markup language
21 you just invented. Please read the XML specification, note how complex
22 some of the little used side features are, and then remember that a
23 compliant XML parser has to implement **all** of them.
24
25 --
26 Ciaran McCreesh : Gentoo Developer (Vim, Shell tools, Fluxbox, Cron)
27 Mail : ciaranm at gentoo.org
28 Web : http://dev.gentoo.org/~ciaranm

Replies

Subject Author
Re: [gentoo-dev] GLEP ??: Critical News Reporting "Jan Kundrát" <jkt@g.o>
Re: [gentoo-dev] GLEP ??: Critical News Reporting Xavier Neys <neysx@g.o>