diff --git a/config.h.in b/config.h.in index ce889f73..5c3dfd74 100644 --- a/config.h.in +++ b/config.h.in @@ -1,8 +1,4 @@ /* config.h.in. Generated automatically from configure.in by autoheader. */ - -/* Define if you have the ANSI C header files. */ -#undef STDC_HEADERS - #undef HAVE_ISINF #undef HAVE_ISNAN #undef HAVE_POW @@ -10,78 +6,80 @@ #undef HAVE_FABS #undef WITH_DEBUGGER -/* Define if you have the _stat function. */ -#undef HAVE__STAT - -/* Define if you have the asctime function. */ -#undef HAVE_ASCTIME - -/* Define if you have the gettimeofday function. */ -#undef HAVE_GETTIMEOFDAY - -/* Define if you have the gmtime function. */ -#undef HAVE_GMTIME - -/* Define if you have the localtime function. */ -#undef HAVE_LOCALTIME - -/* Define if you have the mktime function. */ -#undef HAVE_MKTIME - -/* Define if you have the stat function. */ -#undef HAVE_STAT - -/* Define if you have the time function. */ -#undef HAVE_TIME - -/* Define if you have the header file. */ +/* Define if you have the header file. */ #undef HAVE_ANSIDECL_H -/* Define if you have the header file. */ +/* Define if you have the `asctime' function. */ +#undef HAVE_ASCTIME + +/* Define if you have the header file. */ #undef HAVE_DLFCN_H -/* Define if you have the header file. */ +/* Define if you have the header file. */ #undef HAVE_FLOAT_H -/* Define if you have the header file. */ +/* Define if you have the header file. */ #undef HAVE_FP_CLASS_H -/* Define if you have the header file. */ +/* Define if you have the `gettimeofday' function. */ +#undef HAVE_GETTIMEOFDAY + +/* Define if you have the `gmtime' function. */ +#undef HAVE_GMTIME + +/* Define if you have the header file. */ #undef HAVE_IEEEFP_H -/* Define if you have the header file. */ +/* Define if you have the `localtime' function. */ +#undef HAVE_LOCALTIME + +/* Define if you have the header file. */ #undef HAVE_MATH_H -/* Define if you have the header file. */ +/* Define if you have the `mktime' function. */ +#undef HAVE_MKTIME + +/* Define if you have the header file. */ #undef HAVE_NAN_H -/* Define if you have the header file. */ +/* Define if you have the `stat' function. */ +#undef HAVE_STAT + +/* Define if you have the header file. */ #undef HAVE_STDARG_H -/* Define if you have the header file. */ +/* Define if you have the header file. */ #undef HAVE_STDLIB_H -/* Define if you have the header file. */ +/* Define if you have the header file. */ #undef HAVE_STRING_H -/* Define if you have the header file. */ +/* Define if you have the header file. */ #undef HAVE_SYS_STAT_H -/* Define if you have the header file. */ +/* Define if you have the header file. */ #undef HAVE_SYS_TIME_H -/* Define if you have the header file. */ +/* Define if you have the header file. */ #undef HAVE_SYS_TYPES_H -/* Define if you have the header file. */ +/* Define if you have the `time' function. */ +#undef HAVE_TIME + +/* Define if you have the header file. */ #undef HAVE_TIME_H -/* Define if you have the header file. */ +/* Define if you have the header file. */ #undef HAVE_UNISTD_H +/* Define if you have the `_stat' function. */ +#undef HAVE__STAT + /* Name of package */ #undef PACKAGE +/* Define if you have the ANSI C header files. */ +#undef STDC_HEADERS + /* Version number of package */ #undef VERSION - diff --git a/doc/xsltproc.1 b/doc/xsltproc.1 index 10339eed..f8db1f63 100644 --- a/doc/xsltproc.1 +++ b/doc/xsltproc.1 @@ -21,7 +21,7 @@ .SH NAME xsltproc \- command line xslt processor .SH "SYNOPSIS" -\fBxsltproc\fR [\fB-V\fR | \fB-v\fR | \fB-o \fIfile\fR \fR | \fB--timing\fR | \fB--repeat\fR | \fB--debug\fR | \fB--novalid\fR | \fB--noout\fR | \fB--maxdepth \fIval\fR \fR | \fB--html\fR | \fB--docbook\fR | \fB--param \fIname\fR \fIvalue\fR \fR | \fB--nonet\fR | \fB--warnnet\fR | \fB--catalogs\fR | \fB--xinclude\fR | \fB--profile\fR] [\fB\fIstylesheet\fR\fR] [ \fIfile1\fR ] [ \fIfile2\fR ] [ \fI....\fR ] +\fBxsltproc\fR [\fB-V\fR | \fB-v\fR | \fB-o \fIfile\fR \fR | \fB--timing\fR | \fB--repeat\fR | \fB--debug\fR | \fB--novalid\fR | \fB--noout\fR | \fB--maxdepth \fIval\fR \fR | \fB--html\fR | \fB--docbook\fR | \fB--param \fIname\fR \fIvalue\fR \fR | \fB--stringparam \fIname\fR \fIvalue\fR \fR | \fB--nonet\fR | \fB--warnnet\fR | \fB--catalogs\fR | \fB--xinclude\fR | \fB--profile\fR] [\fB\fIstylesheet\fR\fR] [ \fIfile1\fR ] [ \fIfile2\fR ] [ \fI....\fR ] .SH "INTRODUCTION" .PP @@ -51,7 +51,7 @@ Output each step taken by xsltproc in processing the stylesheet and the document .TP - \fB-o\fR or \fB--output\fR\fIfile\fR + \fB-o\fR or \fB--output\fR \fIfile\fR Direct output to the file named \fIfile\fR. For multiple outputs, also known as "chunking", \fB-o\fR \fBdirectory/\fR directs the output files to a specified directory. The directory must already exist. @@ -105,9 +105,15 @@ The input document is DocBook SGML. .TP - \fB--param\fR \fIname\fR\fIvalue\fR + \fB--param\fR \fIname\fR \fIvalue\fR -Pass a parameter of name \fIname\fR and value \fIvalue\fR to the stylesheet. You may pass multiple name/value pairs up to a maximum of 32. If the value being passed is a string rather than a node identifier it must be escaped in quotes, as follows: xsltproc --param rootid '"introduction"' \fIstylesheet\fR \fIfile\fR +Pass a parameter of name \fIname\fR and value \fIvalue\fR to the stylesheet. You may pass multiple name/value pairs up to a maximum of 32. If the value being passed is a string rather than a node identifier, use \fB--stringparam\fR instead. + +.TP + + \fB--stringparam\fR \fIname\fR \fIvalue\fR + +Pass a paramenter of name \fIname\fR and value \fIvalue\fR where \fIvalue\fR is a string rather than a node identifier. .TP @@ -166,7 +172,10 @@ xsltproc's return codes provide information that can be used when calling it fro 6: error in one of the documents .PP -7: unsuppoted xsl:output method +7: unsupported xsl:output method + +.PP +8: string parameter contains both quote and double-quotes .SH "MORE INFORMATION" diff --git a/doc/xsltproc.html b/doc/xsltproc.html index 33d4e04e..3840d5c1 100644 --- a/doc/xsltproc.html +++ b/doc/xsltproc.html @@ -1,4 +1,4 @@ -xsltproc

xsltproc

Name

xsltproc — command line xslt processor

Synopsis

xsltproc [-V | -v | -o file | --timing | --repeat | --debug | --novalid | --noout | --maxdepth val | --html | --docbook | --param name value | --nonet | --warnnet | --catalogs | --xinclude | --profile] [stylesheet] [file1] [file2] [....]

Introduction

+xsltproc

xsltproc

Name

xsltproc — command line xslt processor

Synopsis

xsltproc [-V | -v | -o file | --timing | --repeat | --debug | --novalid | --noout | --maxdepth val | --html | --docbook | --param name value | --stringparam name value | --nonet | --warnnet | --catalogs | --xinclude | --profile] [stylesheet] [file1] [file2] [....]

Introduction

xsltproc is a command line tool for applying XSLT stylesheets to XML documents. It is part of libxslt, the XSLT C @@ -16,79 +16,72 @@

By default, output is to stdout. You can specify a file for output using the -o option. -

Options

- -V or --version - Show the version of +

Command Line Options

-V or --version
Show the version of libxml and libxslt used. -

- -v or --verbose - Output each step taken +

+ -v or --verbose
Output each step taken by xsltproc in processing the stylesheet and the document. -

- -o or --output - file - Direct output to the file named +

+ -o or --output file
Direct output to the file named file. For multiple outputs, also known as "chunking", -o directory/ directs the output files to a specified directory. The directory must already exist. -

- --timing - Display the time used for parsing the +

+ --timing
Display the time used for parsing the stylesheet, parsing the document and applying the stylesheet and saving the result. Displayed in milliseconds. -

- --repeat - Run the transformation 20 times. Used for +

+ --repeat
Run the transformation 20 times. Used for timing tests. -

- --debug - Output an XML tree of the +

+ --debug
Output an XML tree of the transformed document for debugging purposes. -

- --novalid - Skip loading the document's DTD. -

- --noout - Do not output the result. -

- --maxdepth value - Adjust the +

+ --novalid
Skip loading the document's DTD. +
+ --noout
Do not output the result. +
+ --maxdepth value
Adjust the maximum depth of the template stack before libxslt concludes it is in an infinite loop. The default is 500. -

- --html - The input document is an HTML +

+ --html
The input document is an HTML file. -

- --docbook - The input document is DocBook +

+ --docbook
The input document is DocBook SGML. -

- --param name - value - Pass a parameter of name +

+ --param name value
Pass a parameter of name name and value value to the stylesheet. You may pass multiple - name/value pairs up to a maximum of 8. - -

Note

- If the value being passed is a string rather than a node identifier, - it must be escaped in quotes, as follows: -

- xsltproc --param rootid '"introduction"' - stylesheet file - -

-

- --nonet - Do not use the Internet to fetch DTD's or + name/value pairs up to a maximum of 32. If the value being passed is a + string rather than a node identifier, use + --stringparam instead. +

+ --stringparam name value
Pass a paramenter of name name and + value value where + value is a string rather than a node identifier.
+ --nonet
Do not use the Internet to fetch DTD's or entities. -

- --warnnet - Output notification when DTD's or entities +

+ --warnnet
Output notification when DTD's or entities are fetched over the Internet. -

- --catalogs - Use catalogs to resolve the location of +

+ --catalogs
Use catalogs to resolve the location of external entities. This speeds DTD resolution. By having a catalog file point to a local version of the DTD, xsltproc does not have to use the Internet to fetch the DTD. xsltproc uses the catalog identified by the environmental variable SGML_CATALOG_FILES. -

- --xinclude - Process the input document using the +

+ --xinclude
Process the input document using the Xinclude specification. More details on this can be found in the Xinclude specification: http://www.w3.org/TR/xinclude/ -

- --profile or --norman - Output profiling +

+ --profile or --norman
Output profiling information detailing the amount of time spent in each part of the stylesheet. This is useful in optimizing stylesheet performance. -

Return values

xsltproc's return codes provide information - that can be used when calling it from scripts.

0: normal

1: no argument

2: too many parameters

3: unknown option

4: failed to parse the stylesheet

5: error in the stylesheet

6: error in one of the documents

7: unsuppoted xsl:output method

More Information

libxml web page: http://www.xmlsoft.org/

W3C XSLT page: http://www.w3.org/TR/xslt

+

Return values

xsltproc's return codes provide information + that can be used when calling it from scripts.

0: normal

1: no argument

2: too many parameters

3: unknown option

4: failed to parse the stylesheet

5: error in the stylesheet

6: error in one of the documents

7: unsupported xsl:output method

8: string parameter contains both quote and double-quotes

More Information

libxml web page: http://www.xmlsoft.org/

W3C XSLT page: http://www.w3.org/TR/xslt

diff --git a/doc/xsltproc.xml b/doc/xsltproc.xml index cca5b093..208ac72b 100644 --- a/doc/xsltproc.xml +++ b/doc/xsltproc.xml @@ -44,6 +44,7 @@ --html --docbook --param name value + --stringparam name value --nonet --warnnet --catalogs @@ -216,22 +217,27 @@ - namevalue + name value Pass a parameter of name name and value value to the stylesheet. You may pass multiple name/value pairs up to a maximum of 32. If the value being passed is a - string rather than a node identifier it must be escaped in quotes, as follows: - xsltproc --param rootid '"introduction"' - stylesheet file - - - - - + string rather than a node identifier, use + instead. + + + + + name value + + Pass a paramenter of name name and + value value where + value is a string rather than a node identifier. + +