commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/jsl suite.jelly
Date Mon, 18 Nov 2002 13:47:17 GMT
dion        2002/11/18 05:47:16

  Modified:    jelly/src/test/org/apache/commons/jelly/jsl suite.jelly
  Log:
  Added working test case alternative (many thanks to Bob McW for brain power)
  
  Revision  Changes    Path
  1.3       +19 -0     jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/jsl/suite.jelly
  
  Index: suite.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/jsl/suite.jelly,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- suite.jelly	18 Nov 2002 13:27:23 -0000	1.2
  +++ suite.jelly	18 Nov 2002 13:47:16 -0000	1.3
  @@ -35,4 +35,23 @@
   
       </j:forEach>
   
  +    <!-- this one works!! -->
  +    <jsl:stylesheet var="ss1">
  +      <jsl:template match="document" trim="no">
  +        <h>
  +
  +          <j:set var="full"><x:expr select="$doc/document/properties/title"/></j:set>
  +          <j:set var="short"><x:expr select="./properties/title" /></j:set>
  +          <m:echo>full=${full},short=${short}</m:echo>
  +          <test:assert test="${full == short}">All iterations should succeed</test:assert>
  +        </h>
  +      </jsl:template>
  +    </jsl:stylesheet>
  +
  +    <j:forEach var="file" items="${files.iterator()}">
  +      <x:parse var="doc" xml="${file.toURL()}" />
  +      <jsl:style stylesheet="${ss1}" select="$doc" />
  +    </j:forEach>
  +
  +
   </test:suite>
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message