summaryrefslogtreecommitdiff
path: root/textproc/xalan-c/files/testXSLT.1
blob: a8b60fcbe0b668dc3580df940dfe2657595f831a (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
.\" $NetBSD: testXSLT.1,v 1.2 2001/12/03 19:03:24 wiz Exp $
.Dd November 23, 2000
.Dt TESTXSLT 1
.Os
.Sh NAME
.Nm testXSLT
.Nd Command line tool for XSL transformations
.Sh SYNOPSIS
.Nm
.Fl in Ar xml_file
.Fl xsl Ar xsl_stylesheet
.Fl out Ar output_file
.Op Fl validate
.Op Fl dom
.Op Fl xml | Fl text | Fl html
.Sh DESCRIPTION
.Nm
is the command line tool for the Xalan XSLT engine.
It is used to make a transformation described in an XSL stylesheet on an
XML file.  The output file can be either plain text, HTML, or it can be
just another XML file.
.Sh OPTIONS
.Bl -tag -width indent
.It Fl in Ar xml_file
Uses
.Ar xml_file
as the URl for the input file.
.It Fl xsl Ar xsl_stylesheet
Uses
.Ar xsl_stylesheet
as the URL for the XSL stylesheet.
.It Fl out Ar output_file
write output to
.Ar output_file .
.It Fl escape Ar chars
esape characters
.Ar chars ,
the default is <>&"'\en\er.
.It Fl eer
Expands entity references.  Default is to not expand.
.It Fl v
Show version info.
.It Fl qc
Quiet Pattern Conflicts Warnings
.It Fl q
Quiet mode.
.It Fl indent Ar space_number
Uses
.Ar space_number
as the number of spaces to indent each level in output tree.  Default is 0.
.It Fl validate
Validate XML and XSL input.  Default is to not validate.
.It Fl tt
Traces the templates as they are being called.
.It Fl tg
Traces each result tree generation event.
.It Fl ts
Traces each selection event.
.It Fl ttc
Traces the template children as they are being processed.
.It Fl xml
Uses XML formatter and add XML headers.
.It Fl text
Uses plain text formatter.
.It Fl html
Uses HTML formatter
.It Fl nh
Suppress XML headers.  Require
.Fl xml .
.It Fl stripcdata
Strip CDATA sections of their brackets, but do not escape.  Require
.Fl xml
or
.Fl html .
.It Fl escapedata
Strip CDATA sections of their brackets, and escape.  Require
.Fl xml
or
.Fl html .
.It Fl dom
Test for well-formed output --format to DOM then to XML for output.
.It Fl param Ar name Ar expr
Sets the stylesheet parameter
.Ar param
to
.Ar expr .
.El
.Sh EXAMPLES
.Bd -litteral -offset indent
.Nm
-in input.xml -xsl stylesheet.xsl -out output.html -html
.Ed
.Pp
Format
.Ar input.xml
to
.Ar output.html
using the stylesheet file
.Ar stylesheet.xsl ,
and using the HTML formatter.
.Sh AUTHORS
.An The Apache Xalan-C project Aq http://xml.apache.org
.br
This man page by
.An Emmanuel Dreyfus Aq p99dreyf@criens.u-psud.fr .