bwalding 2003/02/03 16:18:11
Modified: src/plugins-build/xdoc plugin.jelly
Log:
MAVEN-250: Created doc:jslFile to perform arbitrary jsl transformations. Old doc:jsl
tag uses doc:jslFile internally
Revision Changes Path
1.6 +38 -9 jakarta-turbine-maven/src/plugins-build/xdoc/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/xdoc/plugin.jelly,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- plugin.jelly 31 Jan 2003 18:58:49 -0000 1.5
+++ plugin.jelly 4 Feb 2003 00:18:11 -0000 1.6
@@ -41,10 +41,42 @@
${formatter.formatNumber(string,pattern)}
</define:tag>
+ <define:tag name="jslFile">
+ <!--
+ | Basic tag for performing arbitrary jsl transformations
+ | on arbitrary jsl inputs.
+ | @input
+ | @output
+ | @stylesheet
+ | @encoding
+ | @omitXmlDeclaration
+ | @outputMode
+ | @prettyPrint
+ -->
+
+ <util:file name="${input}" var="inputFile" />
+ <x:parse var="doc" xml="${inputFile}"/>
+
+ <j:set var="stylesheetURI" value="file:${stylesheet}"/>
+ <j:file
+ name="${output}"
+ encoding="${encoding}"
+ omitXmlDeclaration="${omitXmlDeclaration}"
+ outputMode="${outputMode}"
+ prettyPrint="${prettyPrint}">
+ <j:include uri="${stylesheetURI.toString()}"/>
+ </j:file>
+
+ </define:tag>
+
+
<define:tag name="jsl">
<!--
+ | This tag has a lot of defaults suitable for transforming
+ | documents easily. See jslCore for a tag suitable for
+ | transforming documents how you want.
| @input
- | @output
+ | @output - Will be placed under ${maven.gen.docs}
| @stylesheet
| @encoding
| @omitXmlDeclaration
@@ -82,17 +114,14 @@
<mkdir dir="${outputDirectory}"/>
- <util:file name="${input}" var="inputFile" />
- <x:parse var="doc" xml="${inputFile}"/>
- <j:set var="stylesheetURI" value="file:${stylesheet}"/>
- <j:file
- name="${outputDirectory}/${output}"
+ <doc:jslFile
+ input="${input}"
+ output="${outputDirectory}/${output}"
+ stylesheet="${stylesheet}"
encoding="${encoding}"
omitXmlDeclaration="${omitXmlDeclaration}"
outputMode="${outputMode}"
- prettyPrint="${prettyPrint}">
- <j:include uri="${stylesheetURI.toString()}"/>
- </j:file>
+ prettyPrint="${prettyPrint}"/>
</define:tag>
<define:tag name="itemLink">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]