You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2006/10/29 22:05:51 UTC
svn commit: r469015 -
/incubator/xap/trunk/WebContent/examples/dataBinding/nestedIterators.xal
Author: mturyn
Date: Sun Oct 29 14:05:51 2006
New Revision: 469015
URL: http://svn.apache.org/viewvc?view=rev&rev=469015
Log:
Altered to match the Java client example.
Modified:
incubator/xap/trunk/WebContent/examples/dataBinding/nestedIterators.xal
Modified: incubator/xap/trunk/WebContent/examples/dataBinding/nestedIterators.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/nestedIterators.xal?view=diff&rev=469015&r1=469014&r2=469015
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/nestedIterators.xal (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/nestedIterators.xal Sun Oct 29 14:05:51 2006
@@ -1,74 +1,80 @@
<xal
xmlns="http://www.openxal.org/xal"
- xmlns:xal="http://www.openxal.org/xal"
- xmlns:data="http://www.openxal.org/data"
- xmlns:xm="http://www.openxal.org/xmodify"
+ xmlns:xal="http://www.openxal.org/xal"
+ xmlns:data="http://www.openxal.org/data"
+ xmlns:xm="http://www.openxal.org/xmodify"
>
- <simpleDocumentDataSource
- xmlns="http://www.openxal.org/data"
+ <data:simpleDocumentDataSource
id="myDataSource"
- source="customers.xml"
+ source="customers.xml"
/>
-<binding
- dataSource="myDataSource"
- select="concat('# Customers: ',count(/customers/customer))"
- id="customerCount"
-/>
-
-<borderLayout/>
- <table borderPosition="center">
-
- <column>
- <header text="Cust id"/>
- </column>
-
- <column>
- <header text="First"/>
- </column>
-
- <column>
- <header text="Last"/>
- </column>
-
- <column>
- <header text="Phone"/>
- </column>
-
- <column>
- <header text="Title"/>
- </column>
- <column>
- <header text="Last"/>
- </column>
-
- <data:iterator name="customer-iterator" dataSource="myDataSource" select="/customers/customer">
- <row>
- <cell text="[outer iterator]" fontSize="8pt" alignHorizontal="right"/>
- <cell text="{ *('@custid') }"/>
- <data:iterator select="*">
- <row>
- <cell/>
- <cell text="[middle]" fontSize="7pt" alignHorizontal="right"/>
- <cell text="{ *( 'text()' ) }"/>
-
- <data:iterator dataSource="customer-iterator" select="/">
+ <data:binding
+ dataSource="myDataSource"
+ select="concat('# Customers: ',count(/customers/customer))"
+ id="customerCount"
+ />
+
+ <borderLayout />
+
+ <table borderPosition="center">
+
+ <column>
+ <header text="Cust id" />
+ </column>
+
+ <column>
+ <header text="First" />
+ </column>
+
+ <column>
+ <header text="Last" />
+ </column>
+
+ <column>
+ <header text="Phone" />
+ </column>
+
+ <column>
+ <header text="Title" />
+ </column>
+ <column>
+ <header text="Last" />
+ </column>
+
+ <data:iterator
+ name="customer-iterator"
+ dataSource="myDataSource"
+ select="/customers/customer"
+ >
+ <row>
+ <cell text="{ *('@custid') }" />
+ <data:iterator select="*">
+ <row>
+ <cell />
+ <cell text="{ *( 'text()' ) }" />
+
+ <data:iterator
+ dataSource="customer-iterator"
+ select="*"
+ >
<row>
- <cell/>
- <cell/>
- <cell text="[inmost]" fontSize="6pt" alignHorizontal="right"/>
- <cell text="{ *( 'text()' ) }"/>
+ <cell text="{ *( 'text()' ) }" />
</row>
</data:iterator>
-
+
</row>
- </data:iterator>
- </row>
- </data:iterator>
- </table>
-
- <!-- label text="{ bind(binding://customerCount) }" borderPosition="south" height="30" / -->
-
+ </data:iterator>
+ </row>
+ </data:iterator>
+ </table>
+
+ <label
+ text="{ bind(binding:customerCount) }"
+ borderPosition="south"
+ height="30"
+ />
+
</xal>
-<!-- -->
\ No newline at end of file
+<!-- -->