/usr/share/doc/docbook-dsssl-doc/install.html is in docbook-dsssl-doc 1.79-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Installation and Setup</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="The Modular DocBook Stylesheets"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Other Documentation"
HREF="otherdoc.html"><LINK
REL="NEXT"
TITLE="Customizing the Stylesheets"
HREF="custom.html"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>The Modular DocBook Stylesheets</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="otherdoc.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="custom.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="INSTALL"
></A
>Chapter 2. Installation and Setup</H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="install.html#INSTJADE"
>Installing Jade</A
></DT
><DT
><A
HREF="install.html#INSTDOCBOOK"
>Installing the DocBook DTD</A
></DT
><DT
><A
HREF="install.html#INSTMDS"
>Installing the Modular DocBook Stylesheets</A
></DT
></DL
></DIV
><P
>In order to process DocBook documents with these stylesheets,
you must get three separate components installed and configured correctly:</P
><P
></P
><UL
><LI
><P
><A
HREF="http://www.jclark.com/jade/"
TARGET="_top"
>Jade</A
> (or
another DSSSL processor)</P
></LI
><LI
><P
>The
<A
HREF="http://www.oasis-open.org/docbook/"
TARGET="_top"
>DocBook DTD</A
>.</P
></LI
><LI
><P
>The <A
HREF="http://sourceforge.net/projects/docbook/"
TARGET="_top"
>The Modular DocBook Stylesheets</A
></P
></LI
></UL
><P
>For simplicity, these instructions assume that you are working with
Jade on a Microsoft Windows machine. These instructions should be just as
useful if you are working on a non-M$ platform, modulo the normal cross-platform
idiosyncracies (path and filename separator characters, use of drive letters,
etc.)</P
><P
>If you are using another DSSSL processor, <A
HREF="install.html#INSTDOCBOOK"
>the Section called <I
>Installing the DocBook DTD</I
></A
>
may still be helpful, but most of the rest probably won't apply.</P
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="INSTJADE"
>Installing Jade</A
></H1
><DIV
CLASS="PROCEDURE"
><OL
TYPE="1"
><LI
CLASS="STEP"
><P
>Download and unpack the <A
HREF="http://www.jclark.com/jade/"
TARGET="_top"
>Jade</A
> distribution. Binary distributions are available for some platforms,
including Microsoft Windows, which makes installation a simple matter of unpacking
the distribution. For other platforms, you will need to build Jade from sources.
Please consult the documentation that comes with Jade for more detailed installation
instructions.</P
><P
>You may wish to add the directory where you installed Jade to your <CODE
CLASS="ENVAR"
>PATH</CODE
>. If not, make sure that you use the fully qualified name of the
executable when you try to run the commands below.</P
></LI
><LI
CLASS="STEP"
><P
>Download <A
HREF="testdata/jtest.sgm"
TARGET="_top"
>jtest.sgm</A
> and <A
HREF="testdata/jtest.dsl"
TARGET="_top"
>jtest.dsl</A
>. These are self-contained test
documents. Test Jade by running:</P
><PRE
CLASS="SCREEN"
>jade -t rtf -d jtest.dsl jtest.sgm</PRE
><P
>This command should silently produce <A
HREF="testdata/jtest.rtf"
TARGET="_top"
>jtest.rtf</A
>.</P
><P
>If you get errors of the form:<PRE
CLASS="SCREEN"
>jade:jtest.dsl:1:72:W: cannot generate system identifier for public
text "-//James Clark//DTD DSSSL Style Sheet//EN"
jade:jtest.dsl:1:72:E: reference to entity "STYLE-SHEET" for which no
system identifier could be generated
jade:jtest.dsl:1:0: entity was defined here
jade:jtest.dsl:1:72:E: DTD did not contain element declaration for
document type name
jade:jtest.dsl:2:12:E: element "STYLE-SHEET" undefined
jade:jtest.dsl:3:20:E: element "STYLE-SPECIFICATION" undefined
jade:jtest.dsl:4:25:E: element "STYLE-SPECIFICATION-BODY" undefined
jade:E: specification document does not have the DSSSL architecture
as a base architecture</PRE
></P
><P
>You probably need to setup the <CODE
CLASS="ENVAR"
>SGML_CATALOG_FILES</CODE
> path,
as described below.</P
></LI
><LI
CLASS="STEP"
><P
>If you encounter other warnings or errors, Jade is not installed
correctly.</P
></LI
></OL
></DIV
></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="INSTDOCBOOK"
>Installing the DocBook DTD</A
></H1
><DIV
CLASS="PROCEDURE"
><OL
TYPE="1"
><LI
CLASS="STEP"
><P
>Download and unpack the <A
HREF="http://www.ora.com/davenport/"
TARGET="_top"
>DocBook DTD</A
> distribution. Please consult the documentation that comes
with DocBook for more detailed installation instructions.</P
></LI
><LI
CLASS="STEP"
><P
>The DocBook DTD is composed of several modules. In order for SGML
tools on your system to find these modules, you will need to setup an <A
HREF="http://www.sgmlopen.org/"
TARGET="_top"
>SGML Open</A
> catalog file that maps the
public identifiers used in DocBook to local system identifiers. The DocBook
distribution comes with a default catalog called <TT
CLASS="FILENAME"
>docbook.cat</TT
>
which is probably sufficient.</P
><P
>Note, however, that Jade does not understand the <TT
CLASS="LITERAL"
>DTDDECL</TT
>
directive in catalog files and will issue a warning if you use <TT
CLASS="FILENAME"
>docbook.cat</TT
> unchanged.</P
></LI
><LI
CLASS="STEP"
><P
>In order to find your catalog files, Jade, nsgmlsu, and the other
tools in the Jade distribution examine the <CODE
CLASS="ENVAR"
>SGML_CATALOG_FILES</CODE
>
environment variable. This variable should contain a <CODE
CLASS="ENVAR"
>PATH</CODE
>-like
list of the catalog files on your system. I have combined the catalog from
the DocBook distribution and several other DTDs that I use frequently into
a single catalog in <TT
CLASS="FILENAME"
>d:/share/sgml/catalog</TT
>, so I set my <CODE
CLASS="ENVAR"
>SGML_CATALOG_FILES</CODE
> variable to:<PRE
CLASS="SCREEN"
>./catalog;d:/share/sgml/catalog;c:/jade/catalog;</PRE
>If you are using only Jade and the DocBook DTD on your system, this
setting should be sufficient:<PRE
CLASS="SCREEN"
>c:/docbook/docbook.cat;c:/jade/catalog</PRE
>assuming that you have the DocBook DTD installed in <TT
CLASS="FILENAME"
>c:\docbook</TT
> and Jade installed in <TT
CLASS="FILENAME"
>c:\jade</TT
>.</P
><P
>Note: If you are on a UNIX system, the catalog file separator in <CODE
CLASS="ENVAR"
>SGML_CATALOG_FILES</CODE
> is the colon, not the semicolon.</P
><P
>One mistake that I frequently make the first time I try to install Jade
somewhere new is to set the <CODE
CLASS="ENVAR"
>SGML_CATALOG_FILES</CODE
> variable to
the list of <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>directories</I
></SPAN
> that contain catalog files rather
than the list of catalog files. That doesn' t work, it has to be a list of
the actual catalog <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>files</I
></SPAN
>.</P
><P
>Another wrinkle to be aware of is that Jade will also search the catalog
files for the <TT
CLASS="LITERAL"
>SGMLDECL</TT
> entry which specifies the default <A
HREF="http://www.oasis-open.org/cover/wlw11.html"
TARGET="_top"
>SGML Declaration</A
> to use.
On my system, I have several doctypes that don't use the declaration identified
as the default in one of my catalog files, so I have to explicitly include
the proper declaration when I format those documents.</P
></LI
><LI
CLASS="STEP"
><A
NAME="DBTEST"
></A
><P
>To test your installation, download <A
HREF="testdata/test.sgm"
TARGET="_top"
>test.sgm</A
> and run following command:<PRE
CLASS="SCREEN"
>nsgmls -sv test.sgm</PRE
>The <B
CLASS="COMMAND"
>nsgmls</B
> program is a stand-alone SGML parser included in the current
Jade distribution (in previous distributions, it was called <B
CLASS="COMMAND"
>nsgmlsu</B
>).</P
><P
>If the <B
CLASS="COMMAND"
>nsgmls</B
> command produces errors, review your
catalog and resolve the errors:<P
></P
><UL
><LI
><P
>Ignore warnings about <TT
CLASS="LITERAL"
>DTDDECL</TT
> being unsupported.
It is unsupported, and there's no way to disable the warning message. Note,
however, that this may also effect which SGML declaration gets used. When
in doubt, pass the correct declaration explicitly and see if that corrects
any problems. (To parse <TT
CLASS="FILENAME"
>test.sgm</TT
> with the declaration <TT
CLASS="FILENAME"
>docbook.dcl</TT
> explicitly, run <B
CLASS="COMMAND"
>nsgmls -sv docbook.dcl test.sgm</B
>.)</P
></LI
><LI
><P
>If you are missing some of the <ACRONYM
CLASS="ACRONYM"
>ISO</ACRONYM
> entity
sets, they are available on the web at <A
HREF="http://www.oasis-open.org/cover/topics.html#entities"
TARGET="_top"
>http://www.oasis-open.org/cover/topics.html#entities</A
></P
></LI
></UL
></P
></LI
></OL
></DIV
></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="INSTMDS"
>Installing the Modular DocBook Stylesheets</A
></H1
><DIV
CLASS="PROCEDURE"
><OL
TYPE="1"
><LI
CLASS="STEP"
><P
>Download and unpack the
<A
HREF="http://sourceforge.net/projects/docbook/"
TARGET="_top"
>stylesheet</A
>
distribution.</P
></LI
><LI
CLASS="STEP"
><P
>Test the installation by processing <TT
CLASS="FILENAME"
>test.sgm</TT
>
(from the <A
HREF="install.html#DBTEST"
>previous section)</A
> with Jade:<PRE
CLASS="SCREEN"
>jade -t rtf -d d:\where-you-unpacked-the-stylesheets\docbook\print\docbook.dsl test.sgm</PRE
> </P
><P
>This command should silently produce <A
HREF="testdata/test.rtf"
TARGET="_top"
><TT
CLASS="FILENAME"
>test.rtf</TT
></A
>.</P
><P
>If you get errors indicating that a capacity has been exceeded (<TT
CLASS="LITERAL"
>...must not exceed LITLEN</TT
> or <TT
CLASS="LITERAL"
>...must not exceed GRPCNT</TT
>, etc.), you are probably using the wrong declaration. Try the test
again, with an explicit declaration:<PRE
CLASS="SCREEN"
>jade -t rtf -d d:\where-you-unpacked-the-stylesheets\docbook\print\docbook.dsl docbook.dcl test.sgm</PRE
></P
><P
>If errors persist, and the <A
HREF="install.html#DBTEST"
>preceding test</A
>
succeeded, something has gone wrong—<A
HREF="http://nwalsh.com/~ndw/contact.html"
TARGET="_top"
>contact the maintainer</A
>.</P
><P
>To test the HTML stylesheet, run<PRE
CLASS="SCREEN"
>jade -t sgml -d d:\where-you-unpacked-the-stylesheets\docbook\html\docbook.dsl test.sgm</PRE
></P
><P
>This command should silently produce <A
HREF="testdata/c01.htm"
TARGET="_top"
><TT
CLASS="FILENAME"
>c01.htm</TT
></A
>. If not, and the preceding test succeeded, something
has gone wrong—<A
HREF="http://nwalsh.com/~ndw/contact.html"
TARGET="_top"
>contact
the maintainer</A
>.</P
></LI
></OL
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="otherdoc.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="custom.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Other Documentation</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
> </TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Customizing the Stylesheets</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>
|