Revision [1356]
This is an old revision of CommandXslt made by DavidLee on 2010-05-04 05:21:52.
Command xslt
Name
xslt executes an XSLT version 2.0 transformation and print the resultSynopsis
xslt [ serialization options ] [options] [-v var value [var value]]Description
-f,-file xslt-file | read xslt script from file |
-i,-input context | use context as the source xml document, otherwise stdin if context is an XML expression which is an item then use it directly as the context item. |
-c,-context context | Use context as a literal context |
-cf,-context-file file | Use file as the name of an XML file for the context, or "-" for stdin |
-n | do not use a source context |
-v | if -v is given then the remaining args are treated as name/value pairs and assigned to xslt external variables |
Supports the standard [ serialization options ]
-i is depreciated. It is a convenience option that does the following
- If context is an atomic value then treat as a filename to be loaded as the context item
- Otherwise treat as the literal context for the context item
-c or -cf are suggested which explicitly indicate if to use the expression literally or as a filename
Example
xslt -f /path/file.xsl -cf foo.xml
Return Value
Returns 0 if the the xslt executed successfully. otherwise 1Commands
CategoryCommands