jstrachan 02/04/26 00:39:07 Modified: jelly TODO.txt build.xml jelly/src/test/org/apache/commons/jelly/define babelfishTaglib.jelly Log: Added dependency on velocity-dep.jar Revision Changes Path 1.6 +4 -0 jakarta-commons-sandbox/jelly/TODO.txt Index: TODO.txt =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/jelly/TODO.txt,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- TODO.txt 9 Mar 2002 15:32:10 -0000 1.5 +++ TODO.txt 26 Apr 2002 07:39:07 -0000 1.6 @@ -1,6 +1,10 @@ TO DO LIST ========== +* when defining new tags using <define:tag>, we should allow attributes to be named, + specified as required, specify the optional conditions and so forth for validating instances. + I guess this could just be normal script though. + * the org.apache.commons.jelly.impl package doesn't have a great name - can we think of a better one? also some of the classes in this package could maybe do with a rename? ScriptBlock for example - should we just call it a Block or maybe a CompositeScript? 1.13 +4 -1 jakarta-commons-sandbox/jelly/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/jelly/build.xml,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- build.xml 25 Apr 2002 18:58:47 -0000 1.12 +++ build.xml 26 Apr 2002 07:39:07 -0000 1.13 @@ -3,7 +3,7 @@ <!-- "Jelly" component of the Jakarta Commons Subproject - $Id: build.xml,v 1.12 2002/04/25 18:58:47 jstrachan Exp $ + $Id: build.xml,v 1.13 2002/04/26 07:39:07 jstrachan Exp $ --> @@ -52,6 +52,7 @@ <property name="commons-digester.api" value="${digester.home}/dist/docs/api"/> <property name="commons-digester.jar" value="${digester.home}/dist/commons-digester.jar"/> <property name="commons-jexl.jar" value="${jexl.home}/dist/commons-jexl.jar"/> + <property name="velocity-dep.jar" value="${jexl.home}/lib/velocity-dep-1.4-dev.jar"/> <!-- ========== Component Declarations ==================================== --> @@ -104,6 +105,7 @@ <pathelement location="${jaxp.parser.jar}"/> <pathelement location="${dom4j.jar}"/> <pathelement location="${jexl.jar}"/> + <pathelement location="${velocity-dep.jar}"/> <pathelement location="${commons-beanutils.jar}"/> <pathelement location="${commons-collections.jar}"/> <pathelement location="${commons-logging.jar}"/> @@ -131,6 +133,7 @@ <pathelement location="${jaxp.parser.jar}"/> <pathelement location="${dom4j.jar}"/> <pathelement location="${jexl.jar}"/> + <pathelement location="${velocity-dep.jar}"/> <pathelement location="${commons-beanutils.jar}"/> <pathelement location="${commons-collections.jar}"/> <pathelement location="${commons-logging.jar}"/> 1.2 +6 -2 jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/define/babelfishTaglib.jelly Index: babelfishTaglib.jelly =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/define/babelfishTaglib.jelly,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- babelfishTaglib.jelly 25 Apr 2002 18:14:09 -0000 1.1 +++ babelfishTaglib.jelly 26 Apr 2002 07:39:07 -0000 1.2 @@ -5,7 +5,9 @@ <j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:define="jelly:define" xmlns:http="notImplementedYet"> <define:taglib uri="jelly:babelfish"> - <!-- defines the <translate> tag --> + <!-- defines the <translate> tag --> + <!-- notice how the 'from' and 'to' attributes are available as variables --> + <!-- and the body of the <translate> tag is invoked via <define:invokeBody> --> <define:tag name="translate"> <http:post url="http://services.xmethods.net:80/perl/soaplite.cgi"> <http:header name="SOAPAction" value="urn:xmethodsBabelFish#BabelFish"/> @@ -17,7 +19,9 @@ <env:Body> <m:BabelFish xmlns:m="urn:xmethodsBabelFish"> <translationmode><j:expr value="${from}"/>_<j:expr value="${to}"/></translationmode> - <sourcedata><define:invokeBody/></sourcedata> + <sourcedata> + <define:invokeBody/> + </sourcedata> </m:BabelFish> </env:Body> </env:Envelope>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>