blob: ddbdea5091c3f36f7be05fb8639d15359b5984fb (
plain)
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
|
Examples in Chapter 7 of the LaTeX Web Companion
Section 7.3
===========
To run the examples in this section you have to install nsgmls
(as for chapter 6) and Megginson's SGMLSpm. You also have to
set the environment variable SGML_CATALOG_FILES as follows:
Bourne shell
SGML_CATALOG_FILES=catalog.xml
export SGML_CATALOG_FILES
C shell
setenv SGML_CATALOG_FILES catalog.xml
Then you can type:
nsgmls invitation.xml | perl sgmlspl.pl inv2lat.pl > invitation.tex
Section 7.4
===========
With similar settings for the environment variable SGML_CATALOG_FILES
we can generate HTML files using invitation.xml and invitation2.xml.
We type the command (Section 7.4.4)
nsgmls invitation.xml | perl sgmlspl.pl inv1html.pl > invcss.html
and (Section 7.4.5)
nsgmls invitation2.xml | perl sgmlspl.pl inv2html.pl > inv2css.html
Together with the file invit.css, shown in Section 7.4.4, you will
obtain with a browser, which correctly understands how to include CSS
files, a view as the one shown in Figure 7.2 (some browsers might need
you to include the content of invit.css inside a <STYLE> tag pair
inside the HTML file). Browsers can treat empty lines differently, so
you might observe more or less white space between paragraphs
depending on the browser used.
Section 7.5
===========
To run jade (and DSSSL style-sheets) we need a different catalog
file, so we redefine SGML_CATALOG_FILES=catalog.dsssl (or the
equivalent in C-like shells).
Then we run as shown on page 320 (copying element content through)
jade -t xml -d empty.dsl invitation.xml
Then you can run
jade -d invitation.dsl invitation.xml
Files in this directory:
========================
Section 7.3
+++++++++++
invitation.xml XML source introduced in Section 6.4.2.2
invitation.dtd DTD source introduced in Section 6.4.3
invitation.tex.save result of Perl run of Section 7.3.2
invitation.sty package file for invitation examples (Section 7.3.2)
catalog.xml catalog file for nsgmls to define XML declaration
inv1html.pl Perl file to run example of Section 7.4.4
inv2lat.pl Perl file to run example of Section 7.3.2
sgmlspl.pl Perl files distributed with the SGMLSpl package
skel.pl " "
SGMLS.pm " "
SGMLS/Output.pm " "
SGMLS/Refs.pm " "
Section 7.4
+++++++++++
invitation2.xml XML source introduced in Section 7.4.5
invitation2.dtd DTD source introduced in Section 7.4.5
invit.css CSS style sheet introduced in Section 7.4.4
invcss.html.save result HTML output for Section 7.4.4
inv2css.html.save result HTML output for Section 7.4.6
Section 7.5
+++++++++++
catalog.dsssl catalog file for jade to define DSSSL style-sheet
empty.dsl trivial DSSSL style-sheet copying element content
through to the output
invitation.dsl used in Section 7.5.3.1
invtab1.dsl used in Section 7.5.3.2
invtab2.dsl used in Section 7.5.3.3
invhtml.dsl used in Section 7.5.5
Section 7.6
+++++++++++
xslexa1.xsl formatting object example (Section 7.6.1)
empty.xsl trivial XSL style-sheet (Section 7.6.3)
sectionexa.xml example XML source
sextionexa.xsl ... and XSL style-sheet (Section 7.6.5.7)
writefiles.xml example XML source
writefile.xsl ... and XSL style-sheet (Section 7.6.8.2)
makesum.xml example XML source
makesum.xsl ... and XSL style-sheet (Section 7.6.8.2)
invlat1.xsl XSL style-sheet for Section 7.6.9
invhtml2.xsl " "
invfo1.xsl XSL style-sheet for Section 7.6.10
(was modified to retain August 1998 syntax for
fo's since fop is not yet updated)
invfo1.fop intermediate output for fop (contains fo's)
invfo1.pdf generated PDF output
|