<style>

Processes a document via XSLT.

Parameters

Attribute Type Description Required
style Uri URI or path that points to the stylesheet to use. If given as path, it can be relative to the project's basedir or absolute. True
destdir directory Directory in which to store the results. The default is the project base directory. False
extension string Desired file extension to be used for the targets. The default is html. False
in file Specifies a single XML document to be styled. Should be used with the out attribute. False
out file Specifies the output name for the styled result from the in attribute. False
failonerror bool Determines if task failure stops the build, or is just reported. The default is true. False
if bool If true then the task will be executed; otherwise, skipped. The default is true. False
unless bool Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. False
verbose bool Determines whether the task should report detailed build log messages. The default is false. False

Nested Elements:

<infiles>

Specifies a group of input files to which to apply the stylesheet.

</infiles>

<parameters>

XSLT parameters to be passed to the XSLT transformation.
<parameter>

Represents an XSLT parameter.

Parameters

AttributeTypeDescriptionRequired
namestring The name of the XSLT parameter. True
valuestring The value of the XSLT parameter. True
ifbool Indicates if the parameter should be added to the XSLT argument list. If true then the parameter will be added; otherwise, skipped. The default is true. False
namespaceuristring The namespace URI to associate with the parameter. False
unlessbool Indicates if the parameter should not be added to the XSLT argument list. If false then the parameter will be added; otherwise, skipped. The default is false. False
</parameter>

</parameters>

<extensionobjects>

XSLT extension objects to be passed to the XSLT transformation.
<extensionobject>

Represents an XSLT extension object. The object should have a default parameterless constructor and the return value should be one of the four basic XPath data types of number, string, Boolean or node set.

Parameters

AttributeTypeDescriptionRequired
assemblyfile The assembly which contains the XSLT extension object. True
typenamestring The full type name of the XSLT extension object. True
ifbool Indicates if the extension object should be added to the XSLT argument list. If true then the extension object will be added; otherwise, skipped. The default is true. False
namespaceuristring The namespace URI to associate with the extension object. False
unlessbool Indicates if the extension object should not be added to the XSLT argument list. If false then the extension object will be added; otherwise, skipped. The default is false. False
</extensionobject>

</extensionobjects>

<proxy>

The network proxy to use to access the Internet resource.

</proxy>

Examples

Requirements

Assembly: NAnt.Core (0.92.4543.0)