| 85 |
$ cvs co utils/convert/debian-docbook |
$ cvs co utils/convert/debian-docbook |
| 86 |
$ cd utils/convert/debian-docbook |
$ cd utils/convert/debian-docbook |
| 87 |
$ make |
$ make |
| 88 |
$ cp * ~/sgmlsource-directory |
$ cp * ~/sgmlsource-directory # watch out not to overwrite Makefile etc. |
| 89 |
$ cd ~/sgmlsource-directory |
$ cd ~/sgmlsource-directory # use of mc is easy way :) |
| 90 |
</pre> |
</pre> |
| 91 |
</p> |
</p> |
| 92 |
<ul> |
<ul> |
| 94 |
<p>If foo.sgml includes many files (subset of dtd), heaer is: |
<p>If foo.sgml includes many files (subset of dtd), heaer is: |
| 95 |
<pre> |
<pre> |
| 96 |
<!DOCTYPE debiandoc PUBLIC "-//DebianDoc//DTD DebianDoc//EN" [ |
<!DOCTYPE debiandoc PUBLIC "-//DebianDoc//DTD DebianDoc//EN" [ |
| 97 |
|
... content |
| 98 |
|
]> |
| 99 |
</pre> |
</pre> |
| 100 |
|
Here splitting each start and end of these section will fail. |
| 101 |
</p> |
</p> |
| 102 |
<p> |
<p> |
| 103 |
If foo.sgml is a single file, header is: |
If foo.sgml is a single file, header is: |
| 178 |
<pre> |
<pre> |
| 179 |
$ nsgmls -s /usr/share/sgml/declaration/xml.decl foo.xml |
$ nsgmls -s /usr/share/sgml/declaration/xml.decl foo.xml |
| 180 |
</pre> |
</pre> |
| 181 |
|
<li>Format source |
| 182 |
|
<p> |
| 183 |
|
In order to make source more readable, some reformatting may be good idea. |
| 184 |
|
For example, |
| 185 |
|
<pre> |
| 186 |
|
$ perl -i -p -e's,</listitem>,</listitem>\n,g' foo.xml |
| 187 |
|
</pre> |
| 188 |
|
</p> |
| 189 |
|
|
| 190 |
<li>Building output |
<li>Building output |
| 191 |
<p> |
<p> |
| 192 |
There are few strategies to build output. |
There are few strategies to build output. |