Wiki source for CommandXslt


Show raw source

======Command xslt======

====Name====
**xslt** executes an XSLT version 2.0 transformation and print the result

====Synopsis====
xslt [ [[SerializationOptions serialization options]] ] [options] [-v var value [var value]]

====Description====
||-f,-file xslt-file|| read xslt script from file||
||-i,-input context||(depreciated) 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 as parameters||

Supports the standard [ [[SerializationOptions 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====
%%(shell)
xslt -f /path/file.xsl -cf foo.xml
%%
====Return Value====
Returns 0 if the the xslt executed successfully. otherwise 1

----
[[Commands]]
[[CategoryCommands]]


Valid XHTML :: Valid CSS: :: Powered by WikkaWiki