Add a man page for the Xalan command-line tool

This commit is contained in:
Benjamin A. Beasley 2024-04-05 11:33:13 -04:00
parent d560232797
commit 9f124b497f
2 changed files with 57 additions and 0 deletions

52
Xalan.1 Normal file
View File

@ -0,0 +1,52 @@
.TH XALAN "1" "April 2024" "" "User Commands"
.SH NAME
.B Xalan
\(en Transform XML documents using a stylesheet
.SH SYNOPSIS
.B Xalan
.RI [ OPTIONS ]
.I source
.I stylesheet
.SH DESCRIPTION
Transform XML documents using a stylesheet
that conforms to XSLT 1.0 standards.
.SH OPTIONS
A dash as the
.I source
argument reads from stdin.
.RB ( \-
cannot be used for both arguments.)
.TP
.B \-a
Use xml-stylesheet PI, not the
.I stylesheet
argument.
.TP
.B \-e\ \fIencoding
Force the specified encoding for the output.
.TP
.B \-i\ \fIinteger
Indent the specified amount.
.TP
.B \-m
Omit the
.B META
tag in HTML output.
.TP
.B \-o\ \fIfilename
Write output to the specified file.
.TP
.B \-p\ \fIname\ expression
Sets a stylesheet parameter.
.TP
.B \-t
Display timing information.
.TP
.B \-u
Disable escaping of URLs in HTML output.
.TP
.B \-?
Display a help message.
.TP
.B \-v
Validates source documents.

View File

@ -22,6 +22,8 @@ URL: https://apache.github.io/xalan-c/
Source0: %{releaseurl}/%{tar_name}.tar.gz Source0: %{releaseurl}/%{tar_name}.tar.gz
Source1: %{releaseurl}/%{tar_name}.tar.gz.asc Source1: %{releaseurl}/%{tar_name}.tar.gz.asc
Source2: %{releaseurl}/KEYS Source2: %{releaseurl}/KEYS
# Man page hand-written for Fedora in groff_man(7) format based on Xalan -?
Source3: Xalan.1
BuildRequires: gnupg2 BuildRequires: gnupg2
BuildRequires: cmake BuildRequires: cmake
@ -123,6 +125,8 @@ install -t '%{buildroot}%{_docdir}/%{name}-doc' -D -p -m 0644 \
cp -rvp docs/images/ samples/ '%{buildroot}%{_docdir}/%{name}-doc' cp -rvp docs/images/ samples/ '%{buildroot}%{_docdir}/%{name}-doc'
hardlink -c -v '%{buildroot}%{_docdir}/%{name}-doc' hardlink -c -v '%{buildroot}%{_docdir}/%{name}-doc'
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE3}'
%check %check
%ctest %ctest
@ -130,6 +134,7 @@ hardlink -c -v '%{buildroot}%{_docdir}/%{name}-doc'
%files %files
%{_bindir}/Xalan %{_bindir}/Xalan
%{_mandir}/man1/Xalan.1*
%files libs %files libs