Hi *,
With a new release coming out soon(-ish), we're going to have to hunt and
update quite a few variable data such as snapshot names/locations, CD sizes,
kernel versions in all our handbooks.
Some time ago, we discussed the possibility of defining values at the
beginning of the handbooks so that we need only update each value once, always
at the same place.
Besides, allowing conditional bodies would let us solve bugs like
http://bugs.gentoo.org/show_bug.cgi?id=52856 or the latest
http://bugs.gentoo.org/show_bug.cgi?id=132816. Paragraphs like "Sparc users or
PPC machines blah blah di blah" are getting more and more common and
inconsistencies such as the partitioning schemes in the the hb-ARCH-disk.xml
files and the common hb-install-config.xml are inevitable without conditionals.
Please have a look at the following links and compare:
Define values in books:
http://gentoo.neysx.org/mystuff/handbook/handbook-mips.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-hppa.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-alpha.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-ppc64.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-ppc.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-amd64.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-sparc.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-x86.xml?passthru=1
Use them:
http://gentoo.neysx.org/mystuff/handbook/hb-install-config.xml?passthru=1
I did not want to make block tags conditional to avoid having to test all
p,table,pre,ul,dl... and added a test attribute to the body tag. The only
change to the DTD would be to make "body+" and add the test attribute.
The test can be any XPath expression that is evaluated and if it returns true,
the body is processed.
The result looks like:
http://gentoo.neysx.org/mystuff/handbook/handbook-x86.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-sparc.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-amd64.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-ppc.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-ppc64.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-alpha.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-hppa.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-mips.xml?part=1&chap=8
The good side is we could deliver less encumbered handbooks and please our users.
The drawback is that it makes writing text that flows properly in all cases
more difficult for us.
If you guys like it, it goes in, but if you think is too complex or too much
work to maintain, I shall not push it down your throat :)
Feedback welcome,
--
/ Xavier Neys
\_ Gentoo Documentation Project
/
/\ http://www.gentoo.org/doc/en/
With a new release coming out soon(-ish), we're going to have to hunt and
update quite a few variable data such as snapshot names/locations, CD sizes,
kernel versions in all our handbooks.
Some time ago, we discussed the possibility of defining values at the
beginning of the handbooks so that we need only update each value once, always
at the same place.
Besides, allowing conditional bodies would let us solve bugs like
http://bugs.gentoo.org/show_bug.cgi?id=52856 or the latest
http://bugs.gentoo.org/show_bug.cgi?id=132816. Paragraphs like "Sparc users or
PPC machines blah blah di blah" are getting more and more common and
inconsistencies such as the partitioning schemes in the the hb-ARCH-disk.xml
files and the common hb-install-config.xml are inevitable without conditionals.
Please have a look at the following links and compare:
Define values in books:
http://gentoo.neysx.org/mystuff/handbook/handbook-mips.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-hppa.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-alpha.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-ppc64.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-ppc.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-amd64.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-sparc.xml?passthru=1
http://gentoo.neysx.org/mystuff/handbook/handbook-x86.xml?passthru=1
Use them:
http://gentoo.neysx.org/mystuff/handbook/hb-install-config.xml?passthru=1
I did not want to make block tags conditional to avoid having to test all
p,table,pre,ul,dl... and added a test attribute to the body tag. The only
change to the DTD would be to make "body+" and add the test attribute.
The test can be any XPath expression that is evaluated and if it returns true,
the body is processed.
The result looks like:
http://gentoo.neysx.org/mystuff/handbook/handbook-x86.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-sparc.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-amd64.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-ppc.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-ppc64.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-alpha.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-hppa.xml?part=1&chap=8
http://gentoo.neysx.org/mystuff/handbook/handbook-mips.xml?part=1&chap=8
The good side is we could deliver less encumbered handbooks and please our users.
The drawback is that it makes writing text that flows properly in all cases
more difficult for us.
If you guys like it, it goes in, but if you think is too complex or too much
work to maintain, I shall not push it down your throat :)
Feedback welcome,
--
/ Xavier Neys
\_ Gentoo Documentation Project
/
/\ http://www.gentoo.org/doc/en/