| … | |
… | |
| 3 | |
3 | |
| 4 | <guide link="/doc/en/xml-guide.xml"> |
4 | <guide link="/doc/en/xml-guide.xml"> |
| 5 | <title>Gentoo Linux XML Guide</title> |
5 | <title>Gentoo Linux XML Guide</title> |
| 6 | <author title="Author"><mail link="drobbins@gentoo.org">Daniel Robbins</mail></author> |
6 | <author title="Author"><mail link="drobbins@gentoo.org">Daniel Robbins</mail></author> |
| 7 | <author title="Author"><mail link="zhen@gentoo.org">John P. Davis</mail></author> |
7 | <author title="Author"><mail link="zhen@gentoo.org">John P. Davis</mail></author> |
|
|
8 | <author title="Editor"><mail link="peesh@gentoo.org">Jorge Paulo</mail></author> |
| 8 | |
9 | |
| 9 | <abstract>This guide shows you how to compose web documentation using the new lightweight Gentoo guide |
10 | <abstract>This guide shows you how to compose web documentation using the new lightweight Gentoo guide |
| 10 | XML syntax. This syntax is the official format for Gentoo Linux documentation, and this document |
11 | XML syntax. This syntax is the official format for Gentoo Linux documentation, and this document |
| 11 | itself was created using guide XML. This guide assumes a basic working knowledge of XML and HTML. |
12 | itself was created using guide XML. This guide assumes a basic working knowledge of XML and HTML. |
| 12 | </abstract> |
13 | </abstract> |
| 13 | |
14 | |
| 14 | <version>2.0</version> |
15 | <version>2.0</version> |
| 15 | <date>06 March 2003</date> |
16 | <date>15 April 2003</date> |
| 16 | |
17 | |
| 17 | <chapter> |
18 | <chapter> |
| 18 | <title>Guide basics</title> |
19 | <title>Guide basics</title> |
| 19 | |
20 | |
| 20 | <section> |
21 | <section> |
| … | |
… | |
| 76 | <path>doc/en/gentoo-x86-install.xml</path>. Now that the locations |
77 | <path>doc/en/gentoo-x86-install.xml</path>. Now that the locations |
| 77 | of the XSL and XML file are known, we can do some transforming with |
78 | of the XSL and XML file are known, we can do some transforming with |
| 78 | <c>xsltproc</c>. </p> |
79 | <c>xsltproc</c>. </p> |
| 79 | |
80 | |
| 80 | <pre caption="Transforming gentoo-x86-install.xml"> |
81 | <pre caption="Transforming gentoo-x86-install.xml"> |
| 81 | # <c>xsltproc xsl/guide.xsl ../doc/en/gentoo-x86-install.xml > /tmp/install.html</c> |
82 | # <c>xsltproc xsl/guide.xsl doc/en/gentoo-x86-install.xml > /tmp/install.html</c> |
| 82 | </pre> |
83 | </pre> |
| 83 | |
84 | |
| 84 | <p> If all went well, you should have a web-ready version of |
85 | <p> If all went well, you should have a web-ready version of |
| 85 | <path>gentoo-x86-install.xml</path> at <path>/tmp/install.html</path>. For this document |
86 | <path>gentoo-x86-install.xml</path> at <path>/tmp/install.html</path>. For this document |
| 86 | to display properly in a web browser, you may have to copy some files from |
87 | to display properly in a web browser, you may have to copy some files from |