cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coli...@apache.org
Subject cvs commit: cocoon-2.1/src/scratchpad/webapp/samples/petstore/view/jxpath Cart.xml
Date Mon, 14 Apr 2003 18:48:30 GMT
coliver     2003/04/14 11:48:30

  Modified:    src/scratchpad/webapp/samples/petstore/view/jxpath Cart.xml
  Log:
  show expression subsitution and select attribute in import and fixed display of listPrice
  
  Revision  Changes    Path
  1.4       +8 -3      cocoon-2.1/src/scratchpad/webapp/samples/petstore/view/jxpath/Cart.xml
  
  Index: Cart.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/scratchpad/webapp/samples/petstore/view/jxpath/Cart.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Cart.xml	14 Apr 2003 15:54:40 -0000	1.3
  +++ Cart.xml	14 Apr 2003 18:48:30 -0000	1.4
  @@ -1,7 +1,12 @@
  -<!-- Example of <import> -->
  +<!-- 
  +     Examples of <import> 
  +     You can use embedded expressions in the import "uri" and you can
  +     [optionally] select a context object for the imported template 
  +-->
  +
   <html xmlns:t="http://cocoon.apache.org/transformation/jxpath/1.0">
   <body>
  -<t:import uri="view/jxpath/IncludeTop.xml"/>
  +<t:import uri="{'view/jxpath/IncludeTop.xml'}" select="{.}"/>
   <table border="0" width="100%" cellspacing="0" cellpadding="0">
   <tr><td valign="top" width="20%" align="left">
   <table align="left" bgcolor="#008800" border="0" cellspacing="2" cellpadding="2">
  @@ -38,7 +43,7 @@
     <td align="center">
     <input type="text" size="3" name="{item/itemId}" value="{quantity}" />
     </td>
  -  <td align="right">{ format-number(item/listPrice, '$#,##0.00') }"/></td>
  +  <td align="right">{ format-number(item/listPrice, '$#,##0.00') }</td>
     <td><a href="removeItemFromCart.do?workingItemId={item/itemId}">
     <img border="0" src="images/button_remove.gif" /></a></td>
     </tr>
  
  
  

Mime
View raw message