/[gentoo]/xml/htdocs/doc/en/xml-guide.xml
Gentoo

Diff of /xml/htdocs/doc/en/xml-guide.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.22 Revision 1.23
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/xml-guide.xml,v 1.22 2003/11/15 00:32:59 neysx Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/xml-guide.xml,v 1.23 2003/11/17 17:05:58 swift Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/doc/en/xml-guide.xml"> 5<guide link="/doc/en/xml-guide.xml">
6<title>Gentoo Linux XML Guide</title> 6<title>Gentoo Linux XML Guide</title>
7 7
21Gentoo GuideXML syntax. This syntax is the official format for Gentoo Linux 21Gentoo GuideXML syntax. This syntax is the official format for Gentoo Linux
22documentation, and this document itself was created using GuideXML. This guide 22documentation, and this document itself was created using GuideXML. This guide
23assumes a basic working knowledge of XML and HTML. 23assumes a basic working knowledge of XML and HTML.
24</abstract> 24</abstract>
25 25
26<version>2.4</version> 26<version>2.5</version>
27<date>November 5, 2003</date> 27<date>November 17, 2003</date>
28 28
29<chapter> 29<chapter>
30<title>Guide basics</title> 30<title>Guide basics</title>
31<section> 31<section>
32<title>Guide XML design goals</title> 32<title>Guide XML design goals</title>
408link="doc_chap1_fig3"&gt;figure 1.3&lt;/uri&gt;</c>. Or, to refer to <uri 408link="doc_chap1_fig3"&gt;figure 1.3&lt;/uri&gt;</c>. Or, to refer to <uri
409link="#doc_chap2_pre2">code listing 2 in chapter 2</uri>, type <c>&lt;uri 409link="#doc_chap2_pre2">code listing 2 in chapter 2</uri>, type <c>&lt;uri
410link="doc_chap2_pre2"&gt;code listing 2.2&lt;/uri&gt;</c>. We'll be 410link="doc_chap2_pre2"&gt;code listing 2.2&lt;/uri&gt;</c>. We'll be
411adding other auto-link abilities (such as table support) soon. 411adding other auto-link abilities (such as table support) soon.
412</p> 412</p>
413
414<p>
415However, some guides change often and using such "counting" can lead to broken
416links. In order to cope with this, you can define a name for a
417<c>&lt;chapter&gt;</c> or <c>&lt;section&gt;</c> by using the <c>id</c>
418attribute, and then point to that attribute, like this:
419</p>
420
421<pre caption="Using the id attribute">
422&lt;chapter id="foo"&gt;
423&lt;title&gt;This is foo!&lt;/title&gt;
424...
425&lt;p&gt;
426More information can be found in the &lt;uri link="#foo"&gt;foo chapter&lt;/uri&gt;
427&lt;/p&gt;
428</pre>
413 429
414</body> 430</body>
415</section> 431</section>
416</chapter> 432</chapter>
417 433

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20