Open Source .NET Development [Electronic resources]

Brian Nantz

نسخه متنی -صفحه : 275/ 170
نمايش فراداده

<style>Process a document via XSLT.

Attribute

Description

Required

basedir

Where to find the source XML file; default is the project's basedir.

False

destdir

Directory in which to store the results.

False

extension

Desired file extension to be used for the targets. The default is l."

False

style

Name of the stylesheet to usegiven either relative to the project's basedir or as an absolute path.

True

in

Specifies a single XML document to be styled. Should be used with the out attribute.

True

out

Specifies the output name for the styled result from the in attribute.

False

failonerror

Determines whether task failure stops the build or is just reported. Default is "true."

False

verbose

Task reports detailed build log messages. Default is "false."

False

if

If true then the task will be executed; otherwise skipped. Default is "true."

False

unless

Opposite of if. If false then the task will be executed; otherwise skipped. Default is "false."

False

Example

<style style="report.xsl" in="data.xml" out="reportl"> <param name="reportType" expression="${report.type}"/> </style>