From 3d79403c2d1d368ce1ccfd1c3bd369029a7c1701 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Tue, 19 Sep 2006 22:22:17 +0000 Subject: [PATCH] document nested style element git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@447997 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/style.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/manual/CoreTasks/style.html b/docs/manual/CoreTasks/style.html index 61514f6b3..cac170b20 100644 --- a/docs/manual/CoreTasks/style.html +++ b/docs/manual/CoreTasks/style.html @@ -105,8 +105,8 @@ element which is used to perform Entity and URI resolution.

attribute basedir for the task, ant will assume that the style attribute is relative to the basedir of the task. - No, if you specify the location of - the stylesheet as a nested resource element + No, if the location of + the stylesheet is specified using a nested <style> element classpath @@ -376,12 +376,15 @@ used by <xslt> removes the file extension from the source file and adds the extension specified via the extension attribute.

-

nested element of type resource to indicate the stylesheet

+

style

Since Ant 1.7

-

You can use nested elements which extend resource to indicate the stylesheet. -See resources to see the concrete syntax you can use

+

The nested style element can be used to specify your stylesheet in terms +of Ant's resource types. With +this element, the stylesheet should be specified as a nested resource or +single-element collection. Alternatively, use the refid to +specify the resource or collection as a reference.

Examples

@@ -446,7 +449,9 @@ See resources to see the concrete synt

Using a nested resource to define the stylesheet

 <xslt in="data.xml" out="${out.dir}/out.xml">
-    <url url="${printParams.xsl.url}"/>
+    <style>
+        <url url="${printParams.xsl.url}"/>
+    </style>
     <param name="set" expression="value"/>
 </xslt>