Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--$Id: sliceE.html,v 1.1 2002/01/17 00:08:14 tvraman Exp $-->
- <html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:xforms="http://www.w3.org/2002/01/xforms"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:my="http://commerce.example.com/payment"
- xml:lang="en">
- <head>
- <title>XForms in XHTML</title>
- <xforms:model>
- <xforms:instance>
- <payment as="credit" xmlns="http://commerce.example.com/payment">
- <cc/>
- <exp/>
- </payment>
- </xforms:instance>
- <xforms:schema xlink:href="payschema.xsd"/>
- <xforms:submitInfo action="http://example.com/submit" method="post" id="s00"/>
- <xforms:bind ref="my:payment/my:cc"
- relevant="../my:payment/@as = 'credit'"
- required="true" type="my:cc"/>
- <xforms:bind ref="my:payment/my:exp"
- relevant="../my:payment/@as = 'credit'"
- required="true" type="xsd:gYearMonth"/>
- </xforms:model>
- </head>
- <body>
- <group xmlns="http://www.w3.org/2002/01/xforms" ref="my:payment">
- <selectOne ref="@as">
- <caption>Select Payment Method</caption>
- <choices>
- <item>
- <caption>Cash</caption>
- <value>cash</value>
- </item>
- <item>
- <caption>Credit</caption>
- <value>credit</value>
- </item>
- </choices>
- </selectOne>
- <input ref="my:cc">
- <caption>Credit Card Number</caption>
- </input>
- <input ref="my:exp">
- <caption>Expiration Date</caption>
- </input>
- <submit submitInfo="s00">
- <caption>Submit Form</caption>
- </submit>
- </group>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement