1SGMLPRE(1) General Commands Manual SGMLPRE(1)
2
3
4
6 sgmlpre - handle SGML conditionalization for SGML-tools
7
9 sgmlpre [options] ...
10
12 This manual page documents briefly the sgmlpre commands. This manual
13 page was written for the Debian GNU/Linux distribution because the
14 original program does not have a manual page for sgmlpre.
15
16 sgmlpre is a program that handle SGML conditionalization for SGML-tools
17
18 It is used by other programs in sgml-tools (v1), and usually normal
19 user does not need to use this program directly by himself.
20
21 Following is quoted from the header in the source code.
22
23 (Begin Quotes)
24 sgmlpre -- handle SGML conditionalization for SGML-tools by Eric
25 S. Raymond <esr@thyrsus.com>, 3 Nov 1997
26
27 Filter SGML according to conditionalizing markup. Argu‐
28 ment/value pairs from the command line are matched against the
29 attributes of <#if> and <#unless> tags. Spans between
30 <#if>/</#if> are passed through unaltered if there is no
31 attribute mismatch; spans between <#unless></#unless> are passed
32 if there is at least one attribute mismatch. An attribute mis‐
33 match happens if an attribute occurs in both the command-line
34 arguments and the tag, but the values do not match. Value
35 matching is by string equality, except that "|" is interpreted
36 as an alternation character. Even if a span is not passed
37 through, its newlines are (this to avoid messing up the line
38 numbers in error messages).
39
40 This lexer requires flex. Limitations; attribute names may only
41 be 256 chars long, values may be only 16384 (YY_BUF_SIZE) char‐
42 acters long. Doesn't do checking that only </if> matches <if>
43 and </unless> matches <unless> (that would need a stack and
44 introduce another limit).
45
46 (End Quotes)
47
48
50 The program does not support normal command line options.
51
53 For a complete description, see the header in the source archive.
54
56 sgmlpre was written by Eric S. Raymond <esr@thyrsus.com>, 3 Nov 1997.
57
58 This manual page was written by Taketoshi Sano <sano@debian.org>, for
59 the Debian GNU/Linux system (but may be used by others).
60
61
62
63 SGMLPRE(1)