Input Parameters
The stylesheet supports a number of input parameters that can be set on the saxon command line, for example,
java -jar saxon8.jar resource-v0.10.xml VOResource-v0.10-v1.0.xsl2 setSchemaLocation=1 schemaLocationPrefix=/home/user/schemas/ > resource-v1.0.xml
The parameters are as follows:
- prettyPrint
- If true, insert carriage returns and indentation to produce a neatly formatted output. If false, any spacing between tags in the source document will be preserved. (default: false).
- indent
- the per-level indentation. Set this to a sequence of spaces when pretty printing is turned on.
- schemaLocationPrefix
- The prefix to prepend to schema files listed in the xsi:schemaLocation(if used). The value should include a trailing slash as necessary. The default is an empty string, which indicates the current working directory (where output is used). Note that the xsi:schemaLocation is only set if it is set on the input.
- setSchemaLocation
- Set to 1 if the xsi:schemaLocation should be set or zero if it should not be. If not set at all (default), xsi:schemaLocation is only set if it is set on the input.
- validationLevel
- Set to 0 or greater if a default validationLevel should set as all possible locations. If greater than -1, the value will be the value of the validationLevel. You must also provide an ID to the validatedBy parameter below in order for the level to be set.
- today
- If set, the updated atribute will be set to this value
- resourceElement
- If set, the output document will have a root element of this name and a namespace given by $resourceNS and it will contain the VOResource metadata; all other wrapping elements from the input will be filtered out. The default setting will produce records that can be inserted directly into a Harvest response record.
- resourceNS
- If resourceName is set (with an non-empty value), the output document will have a root element of $resourceName and a this namespace. It will contain the VOResource metadata; all other wrapping elements from the input will be filtered out.
|