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 2007/06/25 03:05:26 UTC
svn commit: r550329 [3/13] - in /incubator/xap/site: docs/ docs/xmodify/
docs/xmodify/content/ docs/xmodify/css/ docs/xmodify/doc/
docs/xmodify/doc/complexTypes/ docs/xmodify/doc/complexTypes/html/
docs/xmodify/doc/complexTypes/xml/ docs/xmodify/doc/ov...
Added: incubator/xap/site/docs/xmodify/doc/complexTypes/html/replace-element-type.html
URL: http://svn.apache.org/viewvc/incubator/xap/site/docs/xmodify/doc/complexTypes/html/replace-element-type.html?view=auto&rev=550329
==============================================================================
--- incubator/xap/site/docs/xmodify/doc/complexTypes/html/replace-element-type.html (added)
+++ incubator/xap/site/docs/xmodify/doc/complexTypes/html/replace-element-type.html Sun Jun 24 20:05:18 2007
@@ -0,0 +1,199 @@
+<html xmlns:event="http://www.w3.org/2001/XMLSchema" xmlns:meta="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" type="text/css" href="../../../css/stylesheet.css">
+</head>
+<body>
+<script src="../../../js/myJS.js" language="javascript" type="text/javascript"></script>
+<h2>
+<span class="smal">"http://openxal.org/core/xmodify"</span>
+<br>replace</h2>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexOverviewMinus" onClick="
+ javascript:toggleDiv(this,'complexOverviewDivID');">Overview</h4>
+</div>
+<div id="complexOverviewDivID" style="display:block;visibility:visible"> <replace [attributes]> <br> ( <span class="AnyElement">
+ Any element from any namespace
+ </span>* )? <br></replace> </div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexDocMinus" onClick="javascript:toggleDiv(this,'complexDocDivID');">Documentation</h4>
+</div>
+<div id="complexDocDivID" style="display:block;visibility:visible">
+The replace command replaces each of the results returned by the XPath
+query with the command arguments (specified as children of the command element).
+<br><br>
+
+The XPath query must return the following set: ( Element | Text )*.
+If any of the results of the XPath query is not one of the two types, an
+UpdateException is thrown and the execution of the <xm:modifications/>
+block is halted. If the XPath query selects the root Element, the directive
+command has to have exactly one child Element which will be set as the new
+root. If the directive element does not have exactly one child, and the
+XPath query selects the root Element, an UpdateException will be thrown.<br><br>
+
+The following logic applies to the arguments of the replace command based
+on the type of each argument:
+
+<ul>
+<li>value-of directive element is executed and the value of the bound variable will get
+inserted (not the directive element itself)
+<li>clone directive element is executed and the cloned elements (which is the result of
+ executing the command) will get inserted.
+<li>any other xModify directive element will get inserted as is.
+<li>element in any other namespace will be inserted as is. If the XPath query
+ returns more than 1 result, the element is cloned before the insertion to prevent
+ id conflicts (the clone is deep).
+<li>string argument is inserted as is.
+</ul>
+<br>
+
+<h4>Here is a XAL example:</h4><br>
+
+<xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify" document="mydocument"><br>
+ <xm:replace select="id('oldWindow')"><br>
+ <window id="someOtherWindow"/><br>
+ </xm:replace><br>
+</xm:modifications><br><br>
+
+The above command will remove the selected window (id="oldWindow") and in its place
+the new window will be inserted (id="someOtherWindow").
+
+<br><br>
+
+<h4>HTML Example:</h4>
+<br><br>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/jquery/jquery-latest.js"></script>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/xmodify/xmodify-jquery.js"></script>
+
+Choose the anwser to the question and click "Submit", the results of the poll
+will be displayed.
+<br><br>
+<div style="border:1px solid #aaa;margin:10px;padding:10px;" id="replace-contents">
+ <div><b>Will the Redsox win the World Series?</b></div>
+ <div>
+ <input type="radio" name="yes">Yes<br>
+ <input type="radio" name="no">No<br>
+ <input style="width:150px" type="button" value="Submit" onclick="$.xmodify({url:'../../../operations/replace.xml'});"/>
+ </div>
+</div>
+<br>
+<p><b>replace.xml</b></p>
+<p>This file uses the replace xModify instruction to replace the div that contains the poll.
+The select attribute of the replace tag denotes the location of the element to replace.
+Typically you will use a <![CDATA[ ]]> block to cut down on parse
+and traversal time.</p>
+<pre>
+<xal xmlns:xm="http://openxal.org/core/xmodify">
+ <xm:modifications document="html">
+ <xm:replace select="#replace-contents">
+ <![CDATA[
+ <div style="border:1px solid #aaa;margin:10px;padding:10px;" id="replace-contents">
+ <div><b>Results of Poll.</b></div><br>
+ <div>
+ 100% Yes<br>
+ 0% No
+ </div>
+ </div>
+ </div>
+ ]]>
+ </xm:replace>
+ </xm:modifications>
+</xal>
+</pre>
+
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributesMinus" onClick="javascript:toggleDiv(this,'complexAttributesDivID');">Attribute Summary</h4>
+</div>
+<div id="complexAttributesDivID" style="display:block;visibility:visible">
+<table>
+<tr>
+<td class="TableCellHeader NameCell">Attribute Name</td><td class="TableCellHeader">Type</td><td class="TableCellHeader">Description</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableGroupCell" valign="top" colspan="3">Basic<br>
+</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableRightCell NameCell" valign="top"><a href="#select">select</a></td><td valign="top" align="left" class="TableLeftCell"><a href="../../simpleTypes/html/select-attribute-type.html">select</a></td><td class="TableLeftCell">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on.</td>
+</tr>
+</table>
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributeDetailMinus" onClick="javascript:toggleDiv(this,'complexAttributeDetailDivID');">Attribute Details</h4>
+</div>
+<div id="complexAttributeDetailDivID" style="display:block;visibility:visible">
+<h3>
+<img align="top" src="../../../images/base.gif"><a name="select">select</a>
+</h3>
+<table class="TableDetail">
+<tr>
+<td valign="top" class="TableRightCell NameCell">About</td><td class="TableRightCell">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on. <p>
+Shown below is a valid xModify command set containing just 1 command: remove-element.<br><br>
+
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="mydocument">
+ <xm:remove-element select="/ui/rootPane/freePane[1]/button"/>
+ </xm:modifications>
+</pre>
+<br>
+The 'select' attribute of this command contains the following XPath query:
+"/ui/rootPane/freePane[1]/button". This query selects all buttons in the document "mydocument"
+that are children of the first child freePane of the rootPane element. All of these buttons
+are then removed from the document by the remove-element command.
+
+<br><br>
+When selecting elements in the HTML document be sure to capitalize the element names. This is
+a result of the way the are store in the browser. The following example will append a row to the table
+with an id of "myTable". Notice on the XPath statement also contains the TBODY which is
+standard on all tables.
+<br>
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="html">
+ <xm:append select="TABLE[@id='myTable']/TBODY">
+ <![CDATA[ <tr><td>New Person</td></tr>
+ ]]>
+ </xm:append><br>
+ </xm:modifications><br>
+</pre>
+
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Type</td><td class="TableRightCell">
+<p>
+<span class="Types"><a href="../../simpleTypes/html/select-attribute-type.html">select-attribute-type</a></span>
+</p>
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Values</td><td class="TableRightCell"><span class="Types"></span></td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Usage</td><td class="TableRightCell">optional</td>
+</tr>
+</table>
+</div>
+<table class="FooterTable">
+<tr>
+<td align="left" width="50%" class="TableRowColor">Version: Based on Platform 4.5.7.1862</td><td align="right" class="TableRowColor"><span class="updateDate">last update: 2007-06-22</span></td>
+</tr>
+</table>
+<script src="http://www.google-analytics.com/urchin.js" language="javascript" type="text/javascript"></script><script>
+ uacct = "UA-2110702-1";
+ urchinTracker();
+ </script>
+</body>
+</html>
Added: incubator/xap/site/docs/xmodify/doc/complexTypes/html/set-attribute-element-type.html
URL: http://svn.apache.org/viewvc/incubator/xap/site/docs/xmodify/doc/complexTypes/html/set-attribute-element-type.html?view=auto&rev=550329
==============================================================================
--- incubator/xap/site/docs/xmodify/doc/complexTypes/html/set-attribute-element-type.html (added)
+++ incubator/xap/site/docs/xmodify/doc/complexTypes/html/set-attribute-element-type.html Sun Jun 24 20:05:18 2007
@@ -0,0 +1,174 @@
+<html xmlns:event="http://www.w3.org/2001/XMLSchema" xmlns:meta="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" type="text/css" href="../../../css/stylesheet.css">
+</head>
+<body>
+<script src="../../../js/myJS.js" language="javascript" type="text/javascript"></script>
+<h2>
+<span class="smal">"http://openxal.org/core/xmodify"</span>
+<br>set-attribute</h2>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexOverviewMinus" onClick="
+ javascript:toggleDiv(this,'complexOverviewDivID');">Overview</h4>
+</div>
+<div id="complexOverviewDivID" style="display:block;visibility:visible"> <set-attribute [attributes]> <br> ( <a href="attribute-element-type.html">attribute</a> )* <br></set-attribute> </div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexDocMinus" onClick="javascript:toggleDiv(this,'complexDocDivID');">Documentation</h4>
+</div>
+<div id="complexDocDivID" style="display:block;visibility:visible">
+<br>The set-attribute command sets the specified attributes in all of the elements
+returned by the XPath query. All attributes to be set need to be specified as
+an attribute directive element (i.e. <xm:attribute name="myattr" value="somevalue"/>)
+<br><br>
+
+A sample set-attribute command element looks like: <br><br>
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify" document="mydocument"><br>
+ <xm:set-attribute select="/ui/rootPane/freePane[1]/button"><br>
+ <xm:attribute name="myattr1" value="somevalue1"/><br>
+ <xm:attribute name="myattr2" value="somevalue2"/><br>
+ </xm:set-attribute><br>
+ </xm:modifications><br><br>
+</pre>
+After the above command is executed, every button element that is a child of the
+first child freePane of the rootPane element in the document "mydocument" will have
+2 new attributes: myattr1 and myattr2 with the specified values. <br><br>
+
+The XPath query of the set-attribute command must return the following set: ( Element )*.
+If any of the results of the XPath query is not an Element, an UpdateException is thrown
+and the execution of the <xm:modifications/> block is halted.<br><br>
+
+<br><br>
+
+<h4>HTML Example:</h4>
+<br><br>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/jquery/jquery-latest.js"></script>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/xmodify/xmodify-jquery.js"></script>
+
+The buttons below can be used to clear and reset the values of the form inputs.
+<br><br>
+
+<div style="border:1px solid #aaa;margin:10px;padding:10px;" id="replace-contents">
+ <div><b>Please login!</b></div><br>
+ <div>
+ Username: <input id="username" type="text" value="janesmith"><br>
+ Password: <input id="password" type="password" value="wakeup"><br><br>
+ <input style="width:150px" type="button" value="Clear" onclick="$.xmodify({url:'../../../operations/clear-form.xml'});"/>
+ <input style="width:150px" type="button" value="Reset" onclick="$.xmodify({url:'../../../operations/reset-form.xml'});"/>
+ </div>
+</div>
+<br>
+<p><b>clear-form.xml</b></p>
+<p>This file uses the set-attribute xModify instruction to change the text of the input.
+The select attribute of the replace tag denotes the location of the element to change.
+</p>
+<pre>
+<xal xmlns:xm="http://openxal.org/core/xmodify">
+ <xm:modifications document="html">
+ <xm:set-attribute select="#username">
+ <xm:attribute name="value" value=""/>
+ </xm:set-attribute>
+ <xm:set-attribute select="#password">
+ <xm:attribute name="value" value=""/>
+ </xm:set-attribute>
+ </xm:modifications>
+</xal>
+</pre>
+
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributesMinus" onClick="javascript:toggleDiv(this,'complexAttributesDivID');">Attribute Summary</h4>
+</div>
+<div id="complexAttributesDivID" style="display:block;visibility:visible">
+<table>
+<tr>
+<td class="TableCellHeader NameCell">Attribute Name</td><td class="TableCellHeader">Type</td><td class="TableCellHeader">Description</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableGroupCell" valign="top" colspan="3">Basic<br>
+</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableRightCell NameCell" valign="top"><a href="#select">select</a></td><td valign="top" align="left" class="TableLeftCell"><a href="../../simpleTypes/html/select-attribute-type.html">select</a></td><td class="TableLeftCell">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on.</td>
+</tr>
+</table>
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributeDetailMinus" onClick="javascript:toggleDiv(this,'complexAttributeDetailDivID');">Attribute Details</h4>
+</div>
+<div id="complexAttributeDetailDivID" style="display:block;visibility:visible">
+<h3>
+<img align="top" src="../../../images/base.gif"><a name="select">select</a>
+</h3>
+<table class="TableDetail">
+<tr>
+<td valign="top" class="TableRightCell NameCell">About</td><td class="TableRightCell">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on. <p>
+Shown below is a valid xModify command set containing just 1 command: remove-element.<br><br>
+
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="mydocument">
+ <xm:remove-element select="/ui/rootPane/freePane[1]/button"/>
+ </xm:modifications>
+</pre>
+<br>
+The 'select' attribute of this command contains the following XPath query:
+"/ui/rootPane/freePane[1]/button". This query selects all buttons in the document "mydocument"
+that are children of the first child freePane of the rootPane element. All of these buttons
+are then removed from the document by the remove-element command.
+
+<br><br>
+When selecting elements in the HTML document be sure to capitalize the element names. This is
+a result of the way the are store in the browser. The following example will append a row to the table
+with an id of "myTable". Notice on the XPath statement also contains the TBODY which is
+standard on all tables.
+<br>
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="html">
+ <xm:append select="TABLE[@id='myTable']/TBODY">
+ <![CDATA[ <tr><td>New Person</td></tr>
+ ]]>
+ </xm:append><br>
+ </xm:modifications><br>
+</pre>
+
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Type</td><td class="TableRightCell">
+<p>
+<span class="Types"><a href="../../simpleTypes/html/select-attribute-type.html">select-attribute-type</a></span>
+</p>
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Values</td><td class="TableRightCell"><span class="Types"></span></td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Usage</td><td class="TableRightCell">optional</td>
+</tr>
+</table>
+</div>
+<table class="FooterTable">
+<tr>
+<td align="left" width="50%" class="TableRowColor">Version: Based on Platform 4.5.7.1862</td><td align="right" class="TableRowColor"><span class="updateDate">last update: 2007-06-22</span></td>
+</tr>
+</table>
+<script src="http://www.google-analytics.com/urchin.js" language="javascript" type="text/javascript"></script><script>
+ uacct = "UA-2110702-1";
+ urchinTracker();
+ </script>
+</body>
+</html>
Added: incubator/xap/site/docs/xmodify/doc/complexTypes/html/set-innerhtml-element-type.html
URL: http://svn.apache.org/viewvc/incubator/xap/site/docs/xmodify/doc/complexTypes/html/set-innerhtml-element-type.html?view=auto&rev=550329
==============================================================================
--- incubator/xap/site/docs/xmodify/doc/complexTypes/html/set-innerhtml-element-type.html (added)
+++ incubator/xap/site/docs/xmodify/doc/complexTypes/html/set-innerhtml-element-type.html Sun Jun 24 20:05:18 2007
@@ -0,0 +1,156 @@
+<html xmlns:event="http://www.w3.org/2001/XMLSchema" xmlns:meta="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" type="text/css" href="../../../css/stylesheet.css">
+</head>
+<body>
+<script src="../../../js/myJS.js" language="javascript" type="text/javascript"></script>
+<h2>
+<span class="smal">"http://openxal.org/core/xmodify"</span>
+<br>set-innerhtml</h2>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexOverviewMinus" onClick="
+ javascript:toggleDiv(this,'complexOverviewDivID');">Overview</h4>
+</div>
+<div id="complexOverviewDivID" style="display:block;visibility:visible"> <set-innerhtml [attributes]/></div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexDocMinus" onClick="javascript:toggleDiv(this,'complexDocDivID');">Documentation</h4>
+</div>
+<div id="complexDocDivID" style="display:block;visibility:visible">
+<br>The set-innerhtml command takes the contents of the tag and uses it
+as the value of the htmlElement.innerHTML.
+<br><br>
+
+<h4>HTML Example:</h4>
+<br><br>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/jquery/jquery-latest.js"></script>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/xmodify/xmodify-jquery.js"></script>
+
+The buttons below can be used to clear and reset the values of the form inputs.
+<br><br>
+
+<div style="border:1px solid #aaa;margin:10px;padding:10px;" id="replace-contents">
+ <div><b>Will the Redsox win the World Series?</b></div>
+ <div>
+ <input type="radio" name="yes">Yes<br>
+ <input type="radio" name="no">No<br>
+ <input style="width:150px" type="button" value="Submit" onclick="$.xmodify({url:'../../../operations/set-innerhtml.xml'});"/>
+ </div>
+</div>
+<br>
+<p><b>set-innerhtml.xml</b></p>
+<p>This file uses the set-innerhtml xModify instruction to change the contents of the "replace-contents" div.
+</p>
+<pre>
+<xal xmlns:xm="http://openxal.org/core/xmodify">
+ <xm:modifications document="html">
+ <xm:set-innerhtml select="replace-contents"><![CDATA[
+ <div><b>Results of Poll.</b></div><br>
+ <div>
+ 100% Yes<br>
+ 0% No
+ </div>
+ </div>
+ ]]>
+ </xm:set-innerhtml>
+ </xm:modifications>
+</xal>
+</pre>
+
+
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributesMinus" onClick="javascript:toggleDiv(this,'complexAttributesDivID');">Attribute Summary</h4>
+</div>
+<div id="complexAttributesDivID" style="display:block;visibility:visible">
+<table>
+<tr>
+<td class="TableCellHeader NameCell">Attribute Name</td><td class="TableCellHeader">Type</td><td class="TableCellHeader">Description</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableGroupCell" valign="top" colspan="3">Basic<br>
+</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableRightCell NameCell" valign="top"><a href="#select">select</a></td><td valign="top" align="left" class="TableLeftCell"><a href="../../simpleTypes/html/select-attribute-type.html">select</a></td><td class="TableLeftCell">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on.</td>
+</tr>
+</table>
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributeDetailMinus" onClick="javascript:toggleDiv(this,'complexAttributeDetailDivID');">Attribute Details</h4>
+</div>
+<div id="complexAttributeDetailDivID" style="display:block;visibility:visible">
+<h3>
+<img align="top" src="../../../images/base.gif"><a name="select">select</a>
+</h3>
+<table class="TableDetail">
+<tr>
+<td valign="top" class="TableRightCell NameCell">About</td><td class="TableRightCell">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on. <p>
+Shown below is a valid xModify command set containing just 1 command: remove-element.<br><br>
+
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="mydocument">
+ <xm:remove-element select="/ui/rootPane/freePane[1]/button"/>
+ </xm:modifications>
+</pre>
+<br>
+The 'select' attribute of this command contains the following XPath query:
+"/ui/rootPane/freePane[1]/button". This query selects all buttons in the document "mydocument"
+that are children of the first child freePane of the rootPane element. All of these buttons
+are then removed from the document by the remove-element command.
+
+<br><br>
+When selecting elements in the HTML document be sure to capitalize the element names. This is
+a result of the way the are store in the browser. The following example will append a row to the table
+with an id of "myTable". Notice on the XPath statement also contains the TBODY which is
+standard on all tables.
+<br>
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="html">
+ <xm:append select="TABLE[@id='myTable']/TBODY">
+ <![CDATA[ <tr><td>New Person</td></tr>
+ ]]>
+ </xm:append><br>
+ </xm:modifications><br>
+</pre>
+
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Type</td><td class="TableRightCell">
+<p>
+<span class="Types"><a href="../../simpleTypes/html/select-attribute-type.html">select-attribute-type</a></span>
+</p>
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Values</td><td class="TableRightCell"><span class="Types"></span></td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Usage</td><td class="TableRightCell">optional</td>
+</tr>
+</table>
+</div>
+<table class="FooterTable">
+<tr>
+<td align="left" width="50%" class="TableRowColor">Version: Based on Platform 4.5.7.1862</td><td align="right" class="TableRowColor"><span class="updateDate">last update: 2007-06-22</span></td>
+</tr>
+</table>
+<script src="http://www.google-analytics.com/urchin.js" language="javascript" type="text/javascript"></script><script>
+ uacct = "UA-2110702-1";
+ urchinTracker();
+ </script>
+</body>
+</html>
Added: incubator/xap/site/docs/xmodify/doc/complexTypes/html/set-style-element-type.html
URL: http://svn.apache.org/viewvc/incubator/xap/site/docs/xmodify/doc/complexTypes/html/set-style-element-type.html?view=auto&rev=550329
==============================================================================
--- incubator/xap/site/docs/xmodify/doc/complexTypes/html/set-style-element-type.html (added)
+++ incubator/xap/site/docs/xmodify/doc/complexTypes/html/set-style-element-type.html Sun Jun 24 20:05:18 2007
@@ -0,0 +1,152 @@
+<html xmlns:event="http://www.w3.org/2001/XMLSchema" xmlns:meta="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" type="text/css" href="../../../css/stylesheet.css">
+</head>
+<body>
+<script src="../../../js/myJS.js" language="javascript" type="text/javascript"></script>
+<h2>
+<span class="smal">"http://openxal.org/core/xmodify"</span>
+<br>set-style</h2>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexOverviewMinus" onClick="
+ javascript:toggleDiv(this,'complexOverviewDivID');">Overview</h4>
+</div>
+<div id="complexOverviewDivID" style="display:block;visibility:visible"> <set-style [attributes]> <br> ( <a href="style-element-type.html">style</a> )* <br></set-style> </div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexDocMinus" onClick="javascript:toggleDiv(this,'complexDocDivID');">Documentation</h4>
+</div>
+<div id="complexDocDivID" style="display:block;visibility:visible">
+<br>The set-style command sets the specified attributes in all of the elements
+returned by the XPath query. All attributes to be set need to be specified as
+an style directive element (i.e. <xm:style name="background-color" value="red"/>)
+<br><br>
+
+<h4>HTML Example:</h4>
+<br><br>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/jquery/jquery-latest.js"></script>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/xmodify/xmodify-jquery.js"></script>
+
+The buttons below can be used to clear and reset the values of the form inputs.
+<br><br>
+
+<div style="border:1px solid #aaa;margin:10px;padding:10px;" id="replace-contents">
+ <div><b>Please login!</b></div><br>
+ <div>
+ Username: <input id="username" type="text" value="janesmith"><br>
+ Password: <input id="password" type="password" value="wakeup"><br><br>
+ <input style="width:150px" type="button" value="Change Style" onclick="$.xmodify({url:'../../../operations/set-style.xml'});"/>
+ </div>
+</div>
+<br>
+<p><b>set-style.xml</b></p>
+<p>This file uses the set-style xModify instruction to change the background-color and border styles of the input.
+The select attribute of the set-style tag denotes the location of the element to change.
+</p>
+<pre>
+<xal xmlns:xm="http://openxal.org/core/xmodify">
+ <xm:modifications document="html">
+ <xm:set-style select="//INPUT">
+ <xm:style name="background-color" value="red"/>
+ <xm:style name="border" value="3px dashed #aaa"/>
+ </xm:set-style>
+ </xm:modifications>
+</xal>
+</pre>
+
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributesMinus" onClick="javascript:toggleDiv(this,'complexAttributesDivID');">Attribute Summary</h4>
+</div>
+<div id="complexAttributesDivID" style="display:block;visibility:visible">
+<table>
+<tr>
+<td class="TableCellHeader NameCell">Attribute Name</td><td class="TableCellHeader">Type</td><td class="TableCellHeader">Description</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableGroupCell" valign="top" colspan="3">Basic<br>
+</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableRightCell NameCell" valign="top"><a href="#select">select</a></td><td valign="top" align="left" class="TableLeftCell"><a href="../../simpleTypes/html/select-attribute-type.html">select</a></td><td class="TableLeftCell">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on.</td>
+</tr>
+</table>
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributeDetailMinus" onClick="javascript:toggleDiv(this,'complexAttributeDetailDivID');">Attribute Details</h4>
+</div>
+<div id="complexAttributeDetailDivID" style="display:block;visibility:visible">
+<h3>
+<img align="top" src="../../../images/base.gif"><a name="select">select</a>
+</h3>
+<table class="TableDetail">
+<tr>
+<td valign="top" class="TableRightCell NameCell">About</td><td class="TableRightCell">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on. <p>
+Shown below is a valid xModify command set containing just 1 command: remove-element.<br><br>
+
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="mydocument">
+ <xm:remove-element select="/ui/rootPane/freePane[1]/button"/>
+ </xm:modifications>
+</pre>
+<br>
+The 'select' attribute of this command contains the following XPath query:
+"/ui/rootPane/freePane[1]/button". This query selects all buttons in the document "mydocument"
+that are children of the first child freePane of the rootPane element. All of these buttons
+are then removed from the document by the remove-element command.
+
+<br><br>
+When selecting elements in the HTML document be sure to capitalize the element names. This is
+a result of the way the are store in the browser. The following example will append a row to the table
+with an id of "myTable". Notice on the XPath statement also contains the TBODY which is
+standard on all tables.
+<br>
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="html">
+ <xm:append select="TABLE[@id='myTable']/TBODY">
+ <![CDATA[ <tr><td>New Person</td></tr>
+ ]]>
+ </xm:append><br>
+ </xm:modifications><br>
+</pre>
+
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Type</td><td class="TableRightCell">
+<p>
+<span class="Types"><a href="../../simpleTypes/html/select-attribute-type.html">select-attribute-type</a></span>
+</p>
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Values</td><td class="TableRightCell"><span class="Types"></span></td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Usage</td><td class="TableRightCell">optional</td>
+</tr>
+</table>
+</div>
+<table class="FooterTable">
+<tr>
+<td align="left" width="50%" class="TableRowColor">Version: Based on Platform 4.5.7.1862</td><td align="right" class="TableRowColor"><span class="updateDate">last update: 2007-06-22</span></td>
+</tr>
+</table>
+<script src="http://www.google-analytics.com/urchin.js" language="javascript" type="text/javascript"></script><script>
+ uacct = "UA-2110702-1";
+ urchinTracker();
+ </script>
+</body>
+</html>
Added: incubator/xap/site/docs/xmodify/doc/complexTypes/html/style-element-type.html
URL: http://svn.apache.org/viewvc/incubator/xap/site/docs/xmodify/doc/complexTypes/html/style-element-type.html?view=auto&rev=550329
==============================================================================
--- incubator/xap/site/docs/xmodify/doc/complexTypes/html/style-element-type.html (added)
+++ incubator/xap/site/docs/xmodify/doc/complexTypes/html/style-element-type.html Sun Jun 24 20:05:18 2007
@@ -0,0 +1,149 @@
+<html xmlns:event="http://www.w3.org/2001/XMLSchema" xmlns:meta="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" type="text/css" href="../../../css/stylesheet.css">
+</head>
+<body>
+<script src="../../../js/myJS.js" language="javascript" type="text/javascript"></script>
+<h2>
+<span class="smal">"http://openxal.org/core/xmodify"</span>
+<br>style</h2>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexOverviewMinus" onClick="
+ javascript:toggleDiv(this,'complexOverviewDivID');">Overview</h4>
+</div>
+<div id="complexOverviewDivID" style="display:block;visibility:visible"> <style [attributes]/></div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexDocMinus" onClick="javascript:toggleDiv(this,'complexDocDivID');">Documentation</h4>
+</div>
+<div id="complexDocDivID" style="display:block;visibility:visible">
+The style directive element is only used as an argument to the set-style
+directive. The element contains two attributes:<br>
+<ul>
+<li> name - the name of the style to be set.
+<li> value - the value of the style to be set.
+</ul>
+
+<br><br>
+
+<h4>HTML Example:</h4>
+<br><br>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/jquery/jquery-latest.js"></script>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/xmodify/xmodify-jquery.js"></script>
+
+The buttons below can be used to clear and reset the values of the form inputs.
+<br><br>
+
+<div style="border:1px solid #aaa;margin:10px;padding:10px;" id="replace-contents">
+ <div><b>Please login!</b></div><br>
+ <div>
+ Username: <input id="username" type="text" value="janesmith"><br>
+ Password: <input id="password" type="password" value="wakeup"><br><br>
+ <input style="width:150px" type="button" value="Change Style" onclick="$.xmodify({url:'../../../operations/set-style.xml'});"/>
+ </div>
+</div>
+<br>
+<p><b>set-style.xml</b></p>
+<p>This file uses the set-style xModify instruction to change the background-color and border styles of the input.
+The select attribute of the set-style tag denotes the location of the element to change.
+</p>
+<pre>
+<xal xmlns:xm="http://openxal.org/core/xmodify">
+ <xm:modifications document="html">
+ <xm:set-style select="//INPUT">
+ <xm:style name="background-color" value="red"/>
+ <xm:style name="border" value="3px dashed #aaa"/>
+ </xm:set-style>
+ </xm:modifications>
+</xal>
+</pre>
+
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributesMinus" onClick="javascript:toggleDiv(this,'complexAttributesDivID');">Attribute Summary</h4>
+</div>
+<div id="complexAttributesDivID" style="display:block;visibility:visible">
+<table>
+<tr>
+<td class="TableCellHeader NameCell">Attribute Name</td><td class="TableCellHeader">Type</td><td class="TableCellHeader">Description</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableGroupCell" valign="top" colspan="3">Uncategorized<br>
+</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableRightCell NameCell" valign="top"><a href="#value">value</a></td><td valign="top" align="left" class="TableLeftCell Types">string</td><td class="TableLeftCell">
+ Specifies the value of the attribute to be set.</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableRightCell NameCell" valign="top"><a href="#name">name</a></td><td valign="top" align="left" class="TableLeftCell Types">string</td><td class="TableLeftCell">
+ Specifies the name of the attribute to be set.</td>
+</tr>
+</table>
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributeDetailMinus" onClick="javascript:toggleDiv(this,'complexAttributeDetailDivID');">Attribute Details</h4>
+</div>
+<div id="complexAttributeDetailDivID" style="display:block;visibility:visible">
+<h3>
+<img align="top" src="../../../images/base.gif"><a name="name">name</a>
+</h3>
+<table class="TableDetail">
+<tr>
+<td valign="top" class="TableRightCell NameCell">About</td><td class="TableRightCell">
+ Specifies the name of the attribute to be set.
+ </td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Type</td><td class="TableRightCell">
+<p>
+<span class="Types">string</span>
+</p>
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Values</td><td class="TableRightCell"><span class="Types">string</span></td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Usage</td><td class="TableRightCell">optional</td>
+</tr>
+</table>
+<h3>
+<img align="top" src="../../../images/base.gif"><a name="value">value</a>
+</h3>
+<table class="TableDetail">
+<tr>
+<td valign="top" class="TableRightCell NameCell">About</td><td class="TableRightCell">
+ Specifies the value of the attribute to be set.
+ </td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Type</td><td class="TableRightCell">
+<p>
+<span class="Types">string</span>
+</p>
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Values</td><td class="TableRightCell"><span class="Types">string</span></td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Usage</td><td class="TableRightCell">optional</td>
+</tr>
+</table>
+</div>
+<table class="FooterTable">
+<tr>
+<td align="left" width="50%" class="TableRowColor">Version: Based on Platform 4.5.7.1862</td><td align="right" class="TableRowColor"><span class="updateDate">last update: 2007-06-22</span></td>
+</tr>
+</table>
+<script src="http://www.google-analytics.com/urchin.js" language="javascript" type="text/javascript"></script><script>
+ uacct = "UA-2110702-1";
+ urchinTracker();
+ </script>
+</body>
+</html>
Added: incubator/xap/site/docs/xmodify/doc/complexTypes/html/value-of-element-type.html
URL: http://svn.apache.org/viewvc/incubator/xap/site/docs/xmodify/doc/complexTypes/html/value-of-element-type.html?view=auto&rev=550329
==============================================================================
--- incubator/xap/site/docs/xmodify/doc/complexTypes/html/value-of-element-type.html (added)
+++ incubator/xap/site/docs/xmodify/doc/complexTypes/html/value-of-element-type.html Sun Jun 24 20:05:18 2007
@@ -0,0 +1,144 @@
+<html xmlns:event="http://www.w3.org/2001/XMLSchema" xmlns:meta="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" type="text/css" href="../../../css/stylesheet.css">
+</head>
+<body>
+<script src="../../../js/myJS.js" language="javascript" type="text/javascript"></script>
+<h2>
+<span class="smal">"http://openxal.org/core/xmodify"</span>
+<br>value-of</h2>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexOverviewMinus" onClick="
+ javascript:toggleDiv(this,'complexOverviewDivID');">Overview</h4>
+</div>
+<div id="complexOverviewDivID" style="display:block;visibility:visible"> <value-of [attributes]/></div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexDocMinus" onClick="javascript:toggleDiv(this,'complexDocDivID');">Documentation</h4>
+</div>
+<div id="complexDocDivID" style="display:block;visibility:visible">
+The value-of command is used to extract the value of a bound variable.
+Usually the variable is bound by the "variable" command first. Then you can
+use the value-of command as an argument to other commands that take arguments.
+<br><br>
+
+The value of the 'name' attribute should be the name of a variable bound by
+the 'variable' directive.
+<br><br>
+
+Here is a sample use of a value-of command:<br><br>
+
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify" document="mydocument">
+ <xm:variable name="myvar" select="/ui/rootPane/freePane[1]" clone="true"/>
+ <xm:append select="/ui/rootPane">
+ <xm:value-of name="myvar"/>
+ </xm:append>
+ </xm:modifications>
+</pre>
+The above set of commands does the following:<br><br>
+<ul>
+<li>The first command (variable) binds a variable named "myvar" to a clone of the first
+child freePane of the rootPane element in document "mydocument".
+<li>The second command (append) appends the value of the variable "myvar" (the cloned freePane from step 1)
+to the same rootPane element (end result: the rootPane element now has another child freePane).
+</ul>
+
+<br><br>
+
+<h4>HTML Example:</h4>
+<br><br>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/jquery/jquery-latest.js"></script>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/xmodify/xmodify-jquery.js"></script>
+
+Change the value of the input field and click the clone button.
+<br><br>
+
+<div style="border:1px solid #aaa;margin:10px;padding:10px;" id="replace-contents">
+ <div><b>Please login!</b></div><br>
+ <div><input id="username" type="text" value="janesmith"></div><br>
+ <div id="inputContainer">
+ </div>
+ <input style="width:150px" type="button" value="Clone the Input" onclick="$.xmodify({url:'../../../operations/variable.xml'});"/>
+</div>
+<br>
+<p><b>variable.xml</b></p>
+<p>This file uses the variable xModify instruction create a copy of the input field. Then inside of the
+ append tag the value-of tag is used to refer to the variable tag.
+</p>
+<pre>
+<xal xmlns:xm="http://openxal.org/core/xmodify">
+ <xm:modifications document="html">
+ <xm:variable name="variableName" select="#username"/>
+ <xm:append select="#inputContainer">
+ <xm:value-of name="variableName"/>
+ </xm:append>
+ </xm:modifications>
+</xal>
+</pre>
+
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributesMinus" onClick="javascript:toggleDiv(this,'complexAttributesDivID');">Attribute Summary</h4>
+</div>
+<div id="complexAttributesDivID" style="display:block;visibility:visible">
+<table>
+<tr>
+<td class="TableCellHeader NameCell">Attribute Name</td><td class="TableCellHeader">Type</td><td class="TableCellHeader">Description</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableGroupCell" valign="top" colspan="3">Uncategorized<br>
+</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableRightCell NameCell" valign="top"><a href="#name">name</a></td><td valign="top" align="left" class="TableLeftCell Types">string</td><td class="TableLeftCell">
+The name of the variable bound by the 'variable' directive contained in the same
+<xm:modifications/> block.</td>
+</tr>
+</table>
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributeDetailMinus" onClick="javascript:toggleDiv(this,'complexAttributeDetailDivID');">Attribute Details</h4>
+</div>
+<div id="complexAttributeDetailDivID" style="display:block;visibility:visible">
+<h3>
+<img align="top" src="../../../images/base.gif"><a name="name">name</a>
+</h3>
+<table class="TableDetail">
+<tr>
+<td valign="top" class="TableRightCell NameCell">About</td><td class="TableRightCell">
+The name of the variable bound by the 'variable' directive contained in the same
+<xm:modifications/> block. The variable directive should be placed before
+a value-of directive that tries to use the variable value.
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Type</td><td class="TableRightCell">
+<p>
+<span class="Types">string</span>
+</p>
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Values</td><td class="TableRightCell"><span class="Types">string</span></td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Usage</td><td class="TableRightCell">optional</td>
+</tr>
+</table>
+</div>
+<table class="FooterTable">
+<tr>
+<td align="left" width="50%" class="TableRowColor">Version: Based on Platform 4.5.7.1862</td><td align="right" class="TableRowColor"><span class="updateDate">last update: 2007-06-22</span></td>
+</tr>
+</table>
+<script src="http://www.google-analytics.com/urchin.js" language="javascript" type="text/javascript"></script><script>
+ uacct = "UA-2110702-1";
+ urchinTracker();
+ </script>
+</body>
+</html>
Added: incubator/xap/site/docs/xmodify/doc/complexTypes/html/variable-element-type.html
URL: http://svn.apache.org/viewvc/incubator/xap/site/docs/xmodify/doc/complexTypes/html/variable-element-type.html?view=auto&rev=550329
==============================================================================
--- incubator/xap/site/docs/xmodify/doc/complexTypes/html/variable-element-type.html (added)
+++ incubator/xap/site/docs/xmodify/doc/complexTypes/html/variable-element-type.html Sun Jun 24 20:05:18 2007
@@ -0,0 +1,234 @@
+<html xmlns:event="http://www.w3.org/2001/XMLSchema" xmlns:meta="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" type="text/css" href="../../../css/stylesheet.css">
+</head>
+<body>
+<script src="../../../js/myJS.js" language="javascript" type="text/javascript"></script>
+<h2>
+<span class="smal">"http://openxal.org/core/xmodify"</span>
+<br>variable</h2>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexOverviewMinus" onClick="
+ javascript:toggleDiv(this,'complexOverviewDivID');">Overview</h4>
+</div>
+<div id="complexOverviewDivID" style="display:block;visibility:visible"> <variable [attributes]/></div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexDocMinus" onClick="javascript:toggleDiv(this,'complexDocDivID');">Documentation</h4>
+</div>
+<div id="complexDocDivID" style="display:block;visibility:visible">
+<br>The variable command binds an arbitrary variable name to some value (the
+result of the XPath query specified by the select attribute). A sample
+variable command element looks like this:<br><br>
+
+ <xm:variable name="myvar" select="/ui/rootPane/freePane[1]" clone="true"/><br><br>
+
+The variable command should be used together with other commands that can use the
+value of the bound variable. Otherwise it's not of much use. For example: <br><br>
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify" document="mydocument">
+ <xm:variable name="myvar" select="/ui/rootPane/freePane[1]" clone="true"/>
+ <xm:append select="/ui/rootPane">
+ <xm:value-of name="myvar"/>
+ </xm:append>
+ </xm:modifications>
+</pre>
+The above set of commands does the following:
+<ul>
+<li>The first command (variable) binds a variable named "myvar" to a clone of the first
+child freePane of the rootPane element.
+<li>The second command (append) appends the value of the variable "myvar" (the cloned freePane from the first command)
+to the rootPane element of the same document.
+</ul><br>
+Variables bound by the variable command are only visible to other commands enclosed
+by the same <xm:modifications/> element. They also have to appear before the
+commands that need to use the bound variables (since the commands are
+executed in order).
+
+
+<br><br>
+
+<h4>HTML Example:</h4>
+<br><br>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/jquery/jquery-latest.js"></script>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/xmodify/xmodify-jquery.js"></script>
+
+Change the value of the input field and click the clone button.
+<br><br>
+
+<div style="border:1px solid #aaa;margin:10px;padding:10px;" id="replace-contents">
+ <div><b>Please login!</b></div><br>
+ <div><input id="username" type="text" value="janesmith"></div><br>
+ <div id="inputContainer">
+ </div>
+ <input style="width:150px" type="button" value="Clone the Input" onclick="$.xmodify({url:'../../../operations/variable.xml'});"/>
+</div>
+<br>
+<p><b>variable.xml</b></p>
+<p>This file uses the variable xModify instruction create a copy of the input field. Then inside of the
+ append tag the value-of tag is used to refer to the variable tag.
+</p>
+<pre>
+<xal xmlns:xm="http://openxal.org/core/xmodify">
+ <xm:modifications document="html">
+ <xm:variable name="variableName" select="#username"/>
+ <xm:append select="#inputContainer">
+ <xm:value-of name="variableName"/>
+ </xm:append>
+ </xm:modifications>
+</xal>
+</pre>
+
+
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributesMinus" onClick="javascript:toggleDiv(this,'complexAttributesDivID');">Attribute Summary</h4>
+</div>
+<div id="complexAttributesDivID" style="display:block;visibility:visible">
+<table>
+<tr>
+<td class="TableCellHeader NameCell">Attribute Name</td><td class="TableCellHeader">Type</td><td class="TableCellHeader">Description</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableGroupCell" valign="top" colspan="3">Basic<br>
+</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableRightCell NameCell" valign="top"><a href="#clone">clone</a></td><td valign="top" align="left" class="TableLeftCell Types">boolean</td><td class="TableLeftCell">
+Whether or not the result of the XPath query should be cloned before binding it
+to the variable.</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableRightCell NameCell" valign="top"><a href="#name">name</a></td><td valign="top" align="left" class="TableLeftCell Types">string</td><td class="TableLeftCell">
+The name of the variable.</td>
+</tr>
+<tr class="TableRowColor" valign="top" bgcolor="white">
+<td class="TableRightCell NameCell" valign="top"><a href="#select">select</a></td><td valign="top" align="left" class="TableLeftCell"><a href="../../simpleTypes/html/select-attribute-type.html">select</a></td><td class="TableLeftCell">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on.</td>
+</tr>
+</table>
+</div>
+<div>
+<h4 class="Group">
+<img src="../../../images/minus.gif" id="complexAttributeDetailMinus" onClick="javascript:toggleDiv(this,'complexAttributeDetailDivID');">Attribute Details</h4>
+</div>
+<div id="complexAttributeDetailDivID" style="display:block;visibility:visible">
+<h3>
+<img align="top" src="../../../images/base.gif"><a name="clone">clone</a>
+</h3>
+<table class="TableDetail">
+<tr>
+<td valign="top" class="TableRightCell NameCell">About</td><td class="TableRightCell">
+Whether or not the result of the XPath query should be cloned before binding it
+to the variable.
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Type</td><td class="TableRightCell">
+<p>
+<span class="Types">boolean</span>
+</p>
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Values</td><td class="TableRightCell"><span class="Types">boolean</span></td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Usage</td><td class="TableRightCell">optional</td>
+</tr>
+</table>
+<h3>
+<img align="top" src="../../../images/base.gif"><a name="name">name</a>
+</h3>
+<table class="TableDetail">
+<tr>
+<td valign="top" class="TableRightCell NameCell">About</td><td class="TableRightCell">
+The name of the variable.
+ </td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Type</td><td class="TableRightCell">
+<p>
+<span class="Types">string</span>
+</p>
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Values</td><td class="TableRightCell"><span class="Types">string</span></td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Usage</td><td class="TableRightCell">optional</td>
+</tr>
+</table>
+<h3>
+<img align="top" src="../../../images/base.gif"><a name="select">select</a>
+</h3>
+<table class="TableDetail">
+<tr>
+<td valign="top" class="TableRightCell NameCell">About</td><td class="TableRightCell">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on. <p>
+Shown below is a valid xModify command set containing just 1 command: remove-element.<br><br>
+
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="mydocument">
+ <xm:remove-element select="/ui/rootPane/freePane[1]/button"/>
+ </xm:modifications>
+</pre>
+<br>
+The 'select' attribute of this command contains the following XPath query:
+"/ui/rootPane/freePane[1]/button". This query selects all buttons in the document "mydocument"
+that are children of the first child freePane of the rootPane element. All of these buttons
+are then removed from the document by the remove-element command.
+
+<br><br>
+When selecting elements in the HTML document be sure to capitalize the element names. This is
+a result of the way the are store in the browser. The following example will append a row to the table
+with an id of "myTable". Notice on the XPath statement also contains the TBODY which is
+standard on all tables.
+<br>
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="html">
+ <xm:append select="TABLE[@id='myTable']/TBODY">
+ <![CDATA[ <tr><td>New Person</td></tr>
+ ]]>
+ </xm:append><br>
+ </xm:modifications><br>
+</pre>
+
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Type</td><td class="TableRightCell">
+<p>
+<span class="Types"><a href="../../simpleTypes/html/select-attribute-type.html">select-attribute-type</a></span>
+</p>
+</td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Values</td><td class="TableRightCell"><span class="Types"></span></td>
+</tr>
+<tr>
+<td valign="top" class="TableRightCell">Usage</td><td class="TableRightCell">optional</td>
+</tr>
+</table>
+</div>
+<table class="FooterTable">
+<tr>
+<td align="left" width="50%" class="TableRowColor">Version: Based on Platform 4.5.7.1862</td><td align="right" class="TableRowColor"><span class="updateDate">last update: 2007-06-22</span></td>
+</tr>
+</table>
+<script src="http://www.google-analytics.com/urchin.js" language="javascript" type="text/javascript"></script><script>
+ uacct = "UA-2110702-1";
+ urchinTracker();
+ </script>
+</body>
+</html>
Added: incubator/xap/site/docs/xmodify/doc/complexTypes/xml/any-child-directive-element-type.xml
URL: http://svn.apache.org/viewvc/incubator/xap/site/docs/xmodify/doc/complexTypes/xml/any-child-directive-element-type.xml?view=auto&rev=550329
==============================================================================
--- incubator/xap/site/docs/xmodify/doc/complexTypes/xml/any-child-directive-element-type.xml (added)
+++ incubator/xap/site/docs/xmodify/doc/complexTypes/xml/any-child-directive-element-type.xml Sun Jun 24 20:05:18 2007
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<complexType targetNamespace="http://openxal.org/core/xmodify"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:event="http://www.w3.org/2001/XMLSchema"
+ xmlns:meta="http://www.w3.org/2001/XMLSchema"
+ name="any-child-directive-element-type" abstract="true">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en"><![CDATA[
+Elements of this type can take any number of elements of any type as children.
+Examples of elements that extend this type include append, insert-at, insert-before
+and others.
+]]></xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence maxOccurs="1" minOccurs="1">
+ <xsd:any minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ <xsd:extension base="base-directive-element-type" ref="base-directive-element-type.xml">
+ <attributes>
+ <attribute name="select" type="select-attribute-type" ref="select-attribute-type.xml">
+ <xsd:document lang="en">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on. <p>
+Shown below is a valid xModify command set containing just 1 command: remove-element.<br><br>
+
+<pre>
+ &lt;xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="mydocument"&gt;
+ &lt;xm:remove-element select="/ui/rootPane/freePane[1]/button"/&gt;
+ &lt;/xm:modifications&gt;
+</pre>
+<br>
+The 'select' attribute of this command contains the following XPath query:
+"/ui/rootPane/freePane[1]/button". This query selects all buttons in the document "mydocument"
+that are children of the first child freePane of the rootPane element. All of these buttons
+are then removed from the document by the remove-element command.
+
+<br><br>
+When selecting elements in the HTML document be sure to capitalize the element names. This is
+a result of the way the are store in the browser. The following example will append a row to the table
+with an id of &quot;myTable&quot;. Notice on the XPath statement also contains the TBODY which is
+standard on all tables.
+<br>
+<pre>
+ &lt;xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="html"&gt;
+ &lt;xm:append select="TABLE[@id='myTable']/TBODY"&gt;
+ &lt;![CDATA[ &lt;tr&gt;&lt;td&gt;New Person&lt/td&gt;&lt;/tr&gt;
+ ]]&gt;
+ &lt;/xm:append&gt;<br>
+ &lt;/xm:modifications&gt;<br>
+</pre>
+
+</xsd:document>
+ <xsd:briefDocument lang="en">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on.</xsd:briefDocument>
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en"><![CDATA[
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on. <p>
+Shown below is a valid xModify command set containing just 1 command: remove-element.<br><br>
+
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="mydocument">
+ <xm:remove-element select="/ui/rootPane/freePane[1]/button"/>
+ </xm:modifications>
+</pre>
+<br>
+The 'select' attribute of this command contains the following XPath query:
+"/ui/rootPane/freePane[1]/button". This query selects all buttons in the document "mydocument"
+that are children of the first child freePane of the rootPane element. All of these buttons
+are then removed from the document by the remove-element command.
+
+<br><br>
+When selecting elements in the HTML document be sure to capitalize the element names. This is
+a result of the way the are store in the browser. The following example will append a row to the table
+with an id of "myTable". Notice on the XPath statement also contains the TBODY which is
+standard on all tables.
+<br>
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="html">
+ <xm:append select="TABLE[@id='myTable']/TBODY">
+ <![CDATA[ <tr><td>New Person</td></tr>
+ ]]>
+ </xm:append><br>
+ </xm:modifications><br>
+</pre>
+
+]]></xsd:documentation>
+ <xsd:appinfo>
+ <meta:property category="Basic" display-name="Select"/>
+ </xsd:appinfo>
+ </xsd:annotation>
+ </attribute>
+ </attributes>
+ </xsd:extension>
+</complexType>
Added: incubator/xap/site/docs/xmodify/doc/complexTypes/xml/append-element-type.xml
URL: http://svn.apache.org/viewvc/incubator/xap/site/docs/xmodify/doc/complexTypes/xml/append-element-type.xml?view=auto&rev=550329
==============================================================================
--- incubator/xap/site/docs/xmodify/doc/complexTypes/xml/append-element-type.xml (added)
+++ incubator/xap/site/docs/xmodify/doc/complexTypes/xml/append-element-type.xml Sun Jun 24 20:05:18 2007
@@ -0,0 +1,193 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<complexType targetNamespace="http://openxal.org/core/xmodify"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:event="http://www.w3.org/2001/XMLSchema"
+ xmlns:meta="http://www.w3.org/2001/XMLSchema" name="append-element-type">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en"><![CDATA[
+The append command appends its arguments (specified as children of
+the command element) at the end of the children list of each of
+the results returned by the XPath query.<br><br>
+
+The XPath query must return the following set: ( Element | Document )*.
+If any of the results of the XPath query is not an Element or a Document,
+an UpdateException is thrown and the execution of the <xm:modifications/>
+block is halted. If the XPath query selects the Document object, additional
+restrictions apply: the directive element must only have 1 child Element and
+the Document must not have a root Element. If the directive element has more than
+one child or the Document already has a root Element, an UpdateException will
+be thrown.<br><br>
+
+The following logic applies to the arguments of the append command based
+on the type of each argument:
+
+<ul>
+<li>value-of directive element is executed and the value of the bound variable will get
+appended (not the directive element itself)
+<li>clone directive element is executed and the cloned elements (which is the result of
+ executing the command) will get appended.
+<li>any other xModify directive element will get appended as is.
+<li>element in any other namespace will be appended as is. If the XPath query
+ returns more than 1 result, the element is cloned before being appended to prevent
+ id conflicts (the clone is deep).
+<li>string argument is appended as is.
+</ul>
+<br>
+
+<h4>Here is a XAL example:</h4><br>
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify" document="mydocument">
+ <xm:append select="id('mywindow')">
+ <freePane id="mypanel"/>
+ </xm:append>
+ </xm:modifications>
+</pre>
+The above command will append the new freePane (id="mypanel") at the end of the
+children list of the selected window.
+
+<br><br>
+
+<h4>HTML Example:</h4><br>
+
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/jquery/jquery-latest.js"></script>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/xmodify/xmodify-jquery.js"></script>
+
+<p>The "Add row to table" button will append a row to the table.</p>
+
+<p>
+<table style="width:310px" id="mytable">
+ <tr style="background-color:#aaa"><th width="150px" align="left">Employee ID</th><th width="150px" align="left">Full Name</th></tr>
+ <tr><td>3456g</td><td>Jane Smith</td></tr>
+<table>
+<input style="width:150px" type="button" value="Add row to table" onclick="$.xmodify({url:'../../../operations/addrow.xml'});"/>
+<input style="width:150px" type="button" value="Reset table" onclick="$.xmodify({url:'../../../operations/resettable.xml'});"/>
+</p>
+<br>
+
+<p><b>addrow.xml</b></p>
+<p>This file uses the append xModify instruction to add a new row to the html table.
+The select attribute of the append tag denotes the location to which append the children
+of the append tag to. Typically you will use a <![CDATA[ ]]> block to cut down on parse
+and traversal time.</p>
+<pre><xal xmlns:xm="http://openxal.org/core/xmodify">
+ <xm:modifications document="html">
+ <xm:append select="#mytable">
+ <![CDATA[
+ <tr>
+ <td>12390i</td>
+ <td>Larry Franklin</td>
+ </tr>
+ ]]>
+ </xm:append>
+ </xm:modifications>
+</xal>
+</pre>
+
+<p><b>resettables.xml</b></p>
+<p>This file uses the append xModify instruction to add a new row to the html table.
+The select attribute of the append tag denotes the location to which append the children
+of the append tag to. Typically you will use a <![CDATA[ ]]> block to cut down on parse
+and traversal time.</p>
+<pre><xal xmlns:xm="http://openxal.org/core/xmodify">
+ <xm:modifications document="html">
+ <xm:replace-children select="#mytable">
+ <![CDATA[
+ <tr style="background-color:#aaa"><th>Employee ID</th><th>Full Name</th></tr>
+ <tr><td>3456g</td><td>Jane Smith</td></tr>
+ ]]>
+ </xm:replace-children>
+ </xm:modifications>
+</xal>
+</pre>
+
+]]></xsd:documentation>
+ </xsd:annotation>
+ <xsd:extension base="any-child-directive-element-type" ref="any-child-directive-element-type.xml">
+ <xsd:sequence maxOccurs="1" minOccurs="1">
+ <xsd:any minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ <attributes>
+ <attribute name="select" type="select-attribute-type" ref="select-attribute-type.xml">
+ <xsd:document lang="en">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on. <p>
+Shown below is a valid xModify command set containing just 1 command: remove-element.<br><br>
+
+<pre>
+ &lt;xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="mydocument"&gt;
+ &lt;xm:remove-element select="/ui/rootPane/freePane[1]/button"/&gt;
+ &lt;/xm:modifications&gt;
+</pre>
+<br>
+The 'select' attribute of this command contains the following XPath query:
+"/ui/rootPane/freePane[1]/button". This query selects all buttons in the document "mydocument"
+that are children of the first child freePane of the rootPane element. All of these buttons
+are then removed from the document by the remove-element command.
+
+<br><br>
+When selecting elements in the HTML document be sure to capitalize the element names. This is
+a result of the way the are store in the browser. The following example will append a row to the table
+with an id of &quot;myTable&quot;. Notice on the XPath statement also contains the TBODY which is
+standard on all tables.
+<br>
+<pre>
+ &lt;xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="html"&gt;
+ &lt;xm:append select="TABLE[@id='myTable']/TBODY"&gt;
+ &lt;![CDATA[ &lt;tr&gt;&lt;td&gt;New Person&lt/td&gt;&lt;/tr&gt;
+ ]]&gt;
+ &lt;/xm:append&gt;<br>
+ &lt;/xm:modifications&gt;<br>
+</pre>
+
+</xsd:document>
+ <xsd:briefDocument lang="en">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on.</xsd:briefDocument>
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en"><![CDATA[
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on. <p>
+Shown below is a valid xModify command set containing just 1 command: remove-element.<br><br>
+
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="mydocument">
+ <xm:remove-element select="/ui/rootPane/freePane[1]/button"/>
+ </xm:modifications>
+</pre>
+<br>
+The 'select' attribute of this command contains the following XPath query:
+"/ui/rootPane/freePane[1]/button". This query selects all buttons in the document "mydocument"
+that are children of the first child freePane of the rootPane element. All of these buttons
+are then removed from the document by the remove-element command.
+
+<br><br>
+When selecting elements in the HTML document be sure to capitalize the element names. This is
+a result of the way the are store in the browser. The following example will append a row to the table
+with an id of "myTable". Notice on the XPath statement also contains the TBODY which is
+standard on all tables.
+<br>
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="html">
+ <xm:append select="TABLE[@id='myTable']/TBODY">
+ <![CDATA[ <tr><td>New Person</td></tr>
+ ]]>
+ </xm:append><br>
+ </xm:modifications><br>
+</pre>
+
+]]></xsd:documentation>
+ <xsd:appinfo>
+ <meta:property category="Basic" display-name="Select"/>
+ </xsd:appinfo>
+ </xsd:annotation>
+ </attribute>
+ </attributes>
+ </xsd:extension>
+</complexType>
Added: incubator/xap/site/docs/xmodify/doc/complexTypes/xml/attribute-element-type.xml
URL: http://svn.apache.org/viewvc/incubator/xap/site/docs/xmodify/doc/complexTypes/xml/attribute-element-type.xml?view=auto&rev=550329
==============================================================================
--- incubator/xap/site/docs/xmodify/doc/complexTypes/xml/attribute-element-type.xml (added)
+++ incubator/xap/site/docs/xmodify/doc/complexTypes/xml/attribute-element-type.xml Sun Jun 24 20:05:18 2007
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<complexType targetNamespace="http://openxal.org/core/xmodify"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:event="http://www.w3.org/2001/XMLSchema"
+ xmlns:meta="http://www.w3.org/2001/XMLSchema" name="attribute-element-type">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en"><![CDATA[
+The attribute directive element is only used as an argument to the set-attribute
+directive. The element contains two attributes:<br>
+<ul>
+<li> name - the name of the attribute to be set.
+<li> value - the value of the attribute to be set.
+</ul>
+
+<br><br>
+
+<h4>HTML Example:</h4>
+<br><br>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/jquery/jquery-latest.js"></script>
+<script language="JavaScript" type="text/javascript" src="../../../../../javascript/xmodify/xmodify-jquery.js"></script>
+
+The buttons below can be used to clear and reset the values of the form inputs.
+<br><br>
+
+<div style="border:1px solid #aaa;margin:10px;padding:10px;" id="replace-contents">
+ <div><b>Please login!</b></div><br>
+ <div>
+ Username: <input id="username" type="text" value="janesmith"><br>
+ Password: <input id="password" type="password" value="wakeup"><br><br>
+ <input style="width:150px" type="button" value="Clear" onclick="$.xmodify({url:'../../../operations/clear-form.xml'});"/>
+ <input style="width:150px" type="button" value="Reset" onclick="$.xmodify({url:'../../../operations/reset-form.xml'});"/>
+ </div>
+</div>
+<br>
+<p><b>clear-form.xml</b></p>
+<p>This file uses the set-attribute xModify instruction to change the text of the input.
+The select attribute of the replace tag denotes the location of the element to change.
+</p>
+<pre>
+<xal xmlns:xm="http://openxal.org/core/xmodify">
+ <xm:modifications document="html">
+ <xm:set-attribute select="#username">
+ <xm:attribute name="value" value=""/>
+ </xm:set-attribute>
+ <xm:set-attribute select="#password">
+ <xm:attribute name="value" value=""/>
+ </xm:set-attribute>
+ </xm:modifications>
+</xal>
+</pre>
+
+]]></xsd:documentation>
+ </xsd:annotation>
+ <attributes>
+ <attribute name="name" type="string">
+ <xsd:document lang="en">
+ Specifies the name of the attribute to be set.
+ </xsd:document>
+ <xsd:briefDocument lang="en">
+ Specifies the name of the attribute to be set.</xsd:briefDocument>
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en"><![CDATA[
+ Specifies the name of the attribute to be set.
+ ]]></xsd:documentation>
+ </xsd:annotation>
+ </attribute>
+ <attribute name="value" type="string">
+ <xsd:document lang="en">
+ Specifies the value of the attribute to be set.
+ </xsd:document>
+ <xsd:briefDocument lang="en">
+ Specifies the value of the attribute to be set.</xsd:briefDocument>
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en"><![CDATA[
+ Specifies the value of the attribute to be set.
+ ]]></xsd:documentation>
+ </xsd:annotation>
+ </attribute>
+ </attributes>
+</complexType>
Added: incubator/xap/site/docs/xmodify/doc/complexTypes/xml/base-directive-element-type.xml
URL: http://svn.apache.org/viewvc/incubator/xap/site/docs/xmodify/doc/complexTypes/xml/base-directive-element-type.xml?view=auto&rev=550329
==============================================================================
--- incubator/xap/site/docs/xmodify/doc/complexTypes/xml/base-directive-element-type.xml (added)
+++ incubator/xap/site/docs/xmodify/doc/complexTypes/xml/base-directive-element-type.xml Sun Jun 24 20:05:18 2007
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<complexType targetNamespace="http://openxal.org/core/xmodify"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:event="http://www.w3.org/2001/XMLSchema"
+ xmlns:meta="http://www.w3.org/2001/XMLSchema"
+ name="base-directive-element-type" abstract="true">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en"><![CDATA[
+This is the base type that most xModify command element types extend.
+For the detailed description of the attributes of this element type click on
+the links below.
+]]></xsd:documentation>
+ </xsd:annotation>
+ <attributes>
+ <attribute name="select" type="select-attribute-type" ref="select-attribute-type.xml">
+ <xsd:document lang="en">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on. <p>
+Shown below is a valid xModify command set containing just 1 command: remove-element.<br><br>
+
+<pre>
+ &lt;xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="mydocument"&gt;
+ &lt;xm:remove-element select="/ui/rootPane/freePane[1]/button"/&gt;
+ &lt;/xm:modifications&gt;
+</pre>
+<br>
+The 'select' attribute of this command contains the following XPath query:
+"/ui/rootPane/freePane[1]/button". This query selects all buttons in the document "mydocument"
+that are children of the first child freePane of the rootPane element. All of these buttons
+are then removed from the document by the remove-element command.
+
+<br><br>
+When selecting elements in the HTML document be sure to capitalize the element names. This is
+a result of the way the are store in the browser. The following example will append a row to the table
+with an id of &quot;myTable&quot;. Notice on the XPath statement also contains the TBODY which is
+standard on all tables.
+<br>
+<pre>
+ &lt;xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="html"&gt;
+ &lt;xm:append select="TABLE[@id='myTable']/TBODY"&gt;
+ &lt;![CDATA[ &lt;tr&gt;&lt;td&gt;New Person&lt/td&gt;&lt;/tr&gt;
+ ]]&gt;
+ &lt;/xm:append&gt;<br>
+ &lt;/xm:modifications&gt;<br>
+</pre>
+
+</xsd:document>
+ <xsd:briefDocument lang="en">
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on.</xsd:briefDocument>
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en"><![CDATA[
+The value of this attribute is any valid XPath query which returns a result
+set (usually a set of elements or attributes) on which the enclosing xModify
+command then operates on. <p>
+Shown below is a valid xModify command set containing just 1 command: remove-element.<br><br>
+
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="mydocument">
+ <xm:remove-element select="/ui/rootPane/freePane[1]/button"/>
+ </xm:modifications>
+</pre>
+<br>
+The 'select' attribute of this command contains the following XPath query:
+"/ui/rootPane/freePane[1]/button". This query selects all buttons in the document "mydocument"
+that are children of the first child freePane of the rootPane element. All of these buttons
+are then removed from the document by the remove-element command.
+
+<br><br>
+When selecting elements in the HTML document be sure to capitalize the element names. This is
+a result of the way the are store in the browser. The following example will append a row to the table
+with an id of "myTable". Notice on the XPath statement also contains the TBODY which is
+standard on all tables.
+<br>
+<pre>
+ <xm:modifications version="1.0" xmlns:xm="http://openxal.org/core/xmodify"
+ document="html">
+ <xm:append select="TABLE[@id='myTable']/TBODY">
+ <![CDATA[ <tr><td>New Person</td></tr>
+ ]]>
+ </xm:append><br>
+ </xm:modifications><br>
+</pre>
+
+]]></xsd:documentation>
+ <xsd:appinfo>
+ <meta:property category="Basic" display-name="Select"/>
+ </xsd:appinfo>
+ </xsd:annotation>
+ </attribute>
+ </attributes>
+</complexType>