1 |
Ciaran McCreesh wrote: |
2 |
> On Fri, 04 Nov 2005 15:26:28 +0100 Xavier Neys <neysx@g.o> wrote: |
3 |
> | > Oh? Our GuideXML to HTML conversion is thousands of lines of code... |
4 |
> | |
5 |
> | Plain wrong, but you have always made it clear that you are not only |
6 |
> | biased against XML for anything, but also very much XML challenged. |
7 |
> |
8 |
> Run a wc -l on guide.xsl sometime. Either wc is lying or that alone is |
9 |
> thousands of lines of code. |
10 |
|
11 |
You know how to count. Well done. |
12 |
You still haven't got a fscking clue what you're counting, though. |
13 |
BTW, 1525 is not thousands. |
14 |
|
15 |
Remove all the html that surrounds the content, i.e. the top bar with logo and |
16 |
menu, the left col with the menu and old news items, the right col with the |
17 |
ads and you're left with less than a thousand lines. Then remove the blank |
18 |
lines, comments and a bit of what I believe is dead wood but I know has |
19 |
nothing to do with GuideXML, and what's left already does a lot more than |
20 |
GuideXML to HTML transformation. |
21 |
|
22 |
> | Don't worry, some are even worse than you are, worse enough to claim |
23 |
> | that XML is hard to parse because "XML files from a programming |
24 |
> | perspective require extra logic to parse. Compare the following key |
25 |
> | value pair and xml tag pseudo parsing logic for configuration: |
26 |
> | <tag1>entry</tag1> |
27 |
> | Hit a >, tag1 as realized tag name, read until <, read ahead one to |
28 |
> | ensure a closing slash, read until > to get the tag name, compare tag |
29 |
> | name with previous tag name to see what tag it's closing. store value |
30 |
> | attached to tag1." |
31 |
> |
32 |
> That is not parsing XML. That is parsing some arbitrary markup language |
33 |
> you just invented. Please read the XML specification, note how complex |
34 |
> some of the little used side features are, and then remember that a |
35 |
> compliant XML parser has to implement **all** of them. |
36 |
|
37 |
I did not invent that, I was quoting another dev. FYI, the quote is the bit |
38 |
between the " characters. |
39 |
|
40 |
|
41 |
-- |
42 |
/ Xavier Neys |
43 |
\_ Gentoo Documentation Project |
44 |
/ French & Internationalisation Lead |
45 |
\ http://www.gentoo.org/doc/en |
46 |
/\ |
47 |
-- |
48 |
gentoo-dev@g.o mailing list |