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 bb...@apache.org on 2006/07/12 19:54:02 UTC

svn commit: r421392 - /incubator/xap/trunk/testsrc/xap/xmodify/xmodify.xal

Author: bbuffone
Date: Wed Jul 12 12:54:01 2006
New Revision: 421392

URL: http://svn.apache.org/viewvc?rev=421392&view=rev
Log:
Checking in the first version of the xModify against the HTML DOM.

Also added and fixed xModify jsunit tests for both 
xmodify against reagular dom and HTML dom

Sample application to test and demo how to use xModify against the 
HTML dom

Added:
    incubator/xap/trunk/testsrc/xap/xmodify/xmodify.xal   (with props)

Added: incubator/xap/trunk/testsrc/xap/xmodify/xmodify.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/testsrc/xap/xmodify/xmodify.xal?rev=421392&view=auto
==============================================================================
--- incubator/xap/trunk/testsrc/xap/xmodify/xmodify.xal (added)
+++ incubator/xap/trunk/testsrc/xap/xmodify/xmodify.xal Wed Jul 12 12:54:01 2006
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xal xmlns="http://www.openxal.org/xal" xmlns:xm="http://www.openxal.org/xmodify">
+<xm:modifications>
+<xm:append select="/xal">
+<button id="x0" text="x" bgColor="#FF0000" x="100px" y="100px" width="100px" height="100px"/>
+<button2 id="x2" text="x1" bgColor="#FF0000" x="100px" y="100px" width="100px" height="100px"/>
+</xm:append>
+<xm:insert-after select="/xal/button">
+<button1 id="x1" text="x1" bgColor="#FF0000" x="100px" y="100px" width="100px" height="100px"/>
+</xm:insert-after><xm:insert-before select="/xal/button2"><button1a id="x3" text="y" bgColor="#FF0000" x="100px" y="100px" width="100px" height="100px"/></xm:insert-before>
+        
+        <xm:append select="/xal/button1">
+        <buttonnested id="y1" text="new child" bgColor="#FF0000" x="100px" y="100px" width="100px" height="100px"/>
+        <buttonnested2 id="y2" text="new child" bgColor="#FF0000" x="100px" y="100px" width="100px" height="100px"/>
+        <buttonnested3 id="y3" text="new child" bgColor="#FF0000" x="100px" y="100px" width="100px" height="100px"/>
+        </xm:append>
+        <xm:remove-element select="/xal/button1/buttonnested"/>
+        <xm:set-attribute select="/xal/button1">
+        <attribute name="AA" value="A1" />
+        <attribute name="BB" value="B1" />
+        </xm:set-attribute><xm:append select="/xal"><IamRoot id="newroot">Root</IamRoot></xm:append>
+        <xm:remove-attribute select="/xal/button1">
+        <attribute name="AA"/>
+        </xm:remove-attribute><xm:set-attribute select="/xal/button2">
+        <attribute name="firstName" value="&quot;Bob&quot;" />
+        <attribute name="lastName" value="Dobbs" />
+        </xm:set-attribute>
+        <!--
+        Test removing children.
+        -->
+        <xm:append select="/xal/button2">
+        <buttonnested text="new child" bgColor="#FF0000" x="100px" y="100px" width="100px" height="100px"/>
+        <buttonnested2 text="new child" bgColor="#FF0000" x="100px" y="100px" width="100px" height="100px"/>
+        <buttonnested3 text="new child" bgColor="#FF0000" x="100px" y="100px" width="100px" height="100px"/>
+        </xm:append>
+        <xm:remove-children select="/xal/button2"/>
+        </xm:modifications>
+        </xal>
+        
\ No newline at end of file

Propchange: incubator/xap/trunk/testsrc/xap/xmodify/xmodify.xal
------------------------------------------------------------------------------
    svn:eol-style = native