Created
February 9, 2011 22:58
-
-
Save avernet/819516 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:xf="http://www.w3.org/2002/xforms" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:ev="http://www.w3.org/2001/xml-events"> | |
<head> | |
<title>Search Form</title> | |
<xf:model id="amtmodel"> | |
<xf:instance id="search-instance"> | |
<data xmlns=""> | |
<yz> | |
<passwordD/> | |
<remainD/> | |
<totalSSN/> | |
</yz> | |
</data> | |
</xf:instance> | |
<xf:bind nodeset="yz"> | |
<xf:bind name="passwordD" nodeset="passwordD" required="true()"/> | |
<xf:bind name="remainD" nodeset="remainD" required="true()"/> | |
<xf:bind nodeset="totalSSN" calculate="concat($passwordD, $remainD)"/> | |
<!--<xf:bind nodeset="totalSSN" calculate="concat(../passwordD, ../remainD)"/>--> | |
</xf:bind> | |
</xf:model> | |
</head> | |
<body> | |
<h1>Testing For Message Action</h1> | |
Enter a search string, then click the Search button. | |
<xf:repeat nodeset="instance('search-instance')/yz" id="search-repeat"> | |
<div> | |
<xf:secret ref="passwordD"> | |
<xf:label>Enter SSN</xf:label> | |
</xf:secret> | |
<xf:input ref="remainD"> | |
<xf:label>:</xf:label> | |
</xf:input> | |
<xf:output value="totalSSN"> | |
<xf:label>Total SSN</xf:label> | |
</xf:output> | |
</div> | |
</xf:repeat> | |
<xf:group> | |
<xf:trigger> | |
<xf:label>Insert Auction Item</xf:label> | |
<xf:insert nodeset="instance('search-instance')/yz" at="index('search-repeat')" | |
position="after" ev:event="DOMActivate"/> | |
</xf:trigger> | |
<xf:trigger> | |
<xf:label>Delete Auction Item</xf:label> | |
<xf:delete nodeset="instance('search-instance')/yz" at="index('search-repeat')" | |
ev:event="DOMActivate"/> | |
</xf:trigger> | |
</xf:group> | |
<fr:xforms-inspector xmlns:fr="http://orbeon.org/oxf/xml/form-runner"/> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment