Gentoo Archives: gentoo-dev

From: Xavier Neys <neysx@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] xml
Date: Tue, 13 Apr 2004 08:46:27
Message-Id: 407BA8DF.9070204@gentoo.org
In Reply to: [gentoo-dev] xml by Jochen Maes
1 Jochen Maes wrote:
2 > Hi all,
3 >
4 > I have a request for the xml we use with the guide.xsl.
5 > I have noticed that tabs in the xml will corrupt the outlook of the html page
6 > after processing.
7 > This i find a problem, as far as i know xml is a data "container" and tabs
8 > between xml elements shouldn't be affecting the layout of the processed page.
9 > This is easy working around by removing all tabs, but is isn't confirm the xml
10 > standards.
11 >
12 > I'm probably not the only one who said this, but is there a possibility that
13 > this can be adjusted, so we can properly indent our xml? like c++, java, or even
14 > perl without indentations would be appalling...
15 >
16 >
17 > greetings
18 >
19 >
20 In fact, you are the first one to mention this.
21 Using <tabs> to indent our GuideXML has been forbidden and indentation can
22 only be used under some circumstances. Pleace check the coding style in
23 http://www.gentoo.org/doc/en/xml-guide.xml
24 Inserting <tabs>, <spaces> or <-n> between elements has no effect on the
25 resulting document.
26 Using <tabs> in you text is pointless as it is considered white space, just
27 like <space> or <\n>.
28 The only element that allows you to indent its content is the <pre> element
29 for coding samples and you must use spaces in <pre> elements to indent.
30
31 <tabs> are evil in the first place. The only sure way to obtain and keep a
32 given number of spaces is to use spaces. Why isn't that obvious?
33
34
35 Greetz,
36 --
37 / Xavier Neys
38 \_ Gentoo Documentation Project
39 / French & Internationalisation Lead
40 \ http://www.gentoo.org/doc/en
41 /\

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] xml tigger@g.o