You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by js...@apache.org on 2002/05/31 10:52:03 UTC
cvs commit: jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/define example.jelly babelfishTaglib.jelly
jstrachan 2002/05/31 01:52:03
Modified: jelly/src/test/org/apache/commons/jelly/define example.jelly
babelfishTaglib.jelly
Log:
removed some unnecessary whitespace
Revision Changes Path
1.3 +3 -13 jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/define/example.jelly
Index: example.jelly
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/define/example.jelly,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- example.jelly 25 Apr 2002 18:58:47 -0000 1.2
+++ example.jelly 31 May 2002 08:52:03 -0000 1.3
@@ -1,14 +1,4 @@
<?xml version="1.0"?>
-
-<!-- uses the babelfish taglib -->
-
-<j:jelly xmlns:j="jelly:core" xmlns:babelfish="jelly:babelfish">
- This example should output a web service call...
-
- <babelfish:translate from="EN" to="FR">
- Jelly is cool stuff!
- </babelfish:translate>
-
- ... OK did that work?
-
-</j:jelly>
+<!-- uses the babelfish taglib -->
<j:jelly xmlns:j="jelly:core" xmlns:babelfish="jelly:babelfish">
This example should output a web service call...
+ <babelfish:translate from="EN" to="FR">
Jelly is cool stuff!
</babelfish:translate>
+ ... OK did that work?
</j:jelly>
1.3 +27 -31 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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- babelfishTaglib.jelly 26 Apr 2002 07:39:07 -0000 1.2
+++ babelfishTaglib.jelly 31 May 2002 08:52:03 -0000 1.3
@@ -1,33 +1,29 @@
<?xml version="1.0"?>
-
<!-- defines a new taglib of babelfish soap services -->
-
-<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 -->
- <!-- 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"/>
- <http:header name="Content-Type" value="text/xml"/>
- <http:body>
- <env:Envelope
- xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
- env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
- <env:Body>
- <m:BabelFish xmlns:m="urn:xmethodsBabelFish">
- <translationmode><j:expr value="${from}"/>_<j:expr value="${to}"/></translationmode>
- <sourcedata>
- <define:invokeBody/>
- </sourcedata>
- </m:BabelFish>
- </env:Body>
- </env:Envelope>
- </http:body>
- </http:post>
- </define:tag>
-
- </define:taglib>
-</j:jelly>
+<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 -->
+ <!-- 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"/>
+ <http:header name="Content-Type" value="text/xml"/>
+ <http:body>
+ <env:Envelope
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
+ env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
+ <env:Body>
+ <m:BabelFish xmlns:m="urn:xmethodsBabelFish">
+ <translationmode><j:expr value="${from}"/>_<j:expr value="${to}"/></translationmode>
+ <sourcedata>
+ <define:invokeBody/>
+ </sourcedata>
+ </m:BabelFish>
+ </env:Body>
+ </env:Envelope>
+ </http:body>
+ </http:post>
+ </define:tag>
+
+ </define:taglib>
</j:jelly>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>