Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <xform xmlns:xfl="http://semlabs.co.uk/products/xfl">
- <form action="" method="post">
- <xfl:foreach select="item">
- <input type="text" name="personal_name" maxlength="48" value="David Hopkins">
- <xfl:sanitise type="string"/>
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="minlength" value="4" error="Personal name must not be shorter than 4 characters."/>
- <xfl:validate type="maxlength" value="48" error="Personal name must not be longer than 48 characters."/>
- <xfl:validate type="regex" value="/a-z /i"/>
- </input>
- <input type="text" name="email" maxlength="128" value="david@semlabs.co.uk">
- <xfl:sanitise type="string"/>
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="minlength" value="6" error="Email must not be shorter than 6 characters."/>
- <xfl:validate type="maxlength" value="128" error="Email must not be longer than 128 characters."/>
- <xfl:validate type="regex" value="/[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z.]{2,30}/i"/>
- </input>
- <input type="text" name="url" maxlength="128" value="http://semlabs.co.uk/">
- <xfl:sanitise type="string"/>
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="minlength" value="6" error="URL must not be shorter than 6 characters."/>
- <xfl:validate type="maxlength" value="128" error="URL must not be longer than 128 characters."/>
- <xfl:validate type="regex" value="/url-regex/i"/>
- </input>
- <input type="radio" name="type" value="logo">
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="equals" value="logo"/>
- </input>
- <xfl:if>
- <input type="radio" name="type" value="website">
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="equals" value="website"/>
- </input>
- </xfl:if>
- <input type="checkbox" name="colour[]" value="red"/>
- <input type="checkbox" name="colour[]" value="yellow"/>
- <input type="checkbox" name="colour[]" value="pink"/>
- <textarea name="description"><xfl:format type="html"/><xfl:sanitise type="plain-text"/><xfl:validate type="required" value="1"/><xfl:validate type="minlength" value="6" error="Personal name must not be shorter than 6 characters."/><xfl:validate type="maxlength" value="5000" error="Description must not be longer than 5000 characters."/>Hello &amp; blah.</textarea>
- </xfl:foreach>
- <xfl:foreach select="item" path="/form/item[position() = 2]">
- <input type="text" name="personal_name" maxlength="48" value="nTommy">
- <xfl:sanitise type="string"/>
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="minlength" value="4" error="Personal name must not be shorter than 4 characters."/>
- <xfl:validate type="maxlength" value="48" error="Personal name must not be longer than 48 characters."/>
- <xfl:validate type="regex" value="/a-z /i"/>
- </input>
- <input type="text" name="email" maxlength="128" value="tom@semlabs.co.uk">
- <xfl:sanitise type="string"/>
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="minlength" value="6" error="Email must not be shorter than 6 characters."/>
- <xfl:validate type="maxlength" value="128" error="Email must not be longer than 128 characters."/>
- <xfl:validate type="regex" value="/[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z.]{2,30}/i"/>
- </input>
- <input type="text" name="url" maxlength="128" value="http://babythings4u.co.uk/">
- <xfl:sanitise type="string"/>
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="minlength" value="6" error="URL must not be shorter than 6 characters."/>
- <xfl:validate type="maxlength" value="128" error="URL must not be longer than 128 characters."/>
- <xfl:validate type="regex" value="/url-regex/i"/>
- </input>
- <input type="radio" name="type" value="logo">
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="equals" value="logo"/>
- </input>
- <xfl:if>
- <input type="radio" name="type" value="website">
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="equals" value="website"/>
- </input>
- </xfl:if>
- <input type="checkbox" name="colour[]" value="red"/>
- <input type="checkbox" name="colour[]" value="yellow"/>
- <input type="checkbox" name="colour[]" value="pink"/>
- <textarea name="description"><xfl:format type="html"/><xfl:sanitise type="plain-text"/><xfl:validate type="required" value="1"/><xfl:validate type="minlength" value="6" error="Personal name must not be shorter than 6 characters."/><xfl:validate type="maxlength" value="5000" error="Description must not be longer than 5000 characters."/>baby garb</textarea>
- </xfl:foreach>
- <xfl:foreach select="item" path="/form/item[position() = 3]">
- <input type="text" name="personal_name" maxlength="48" value="Jez">
- <xfl:sanitise type="string"/>
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="minlength" value="4" error="Personal name must not be shorter than 4 characters."/>
- <xfl:validate type="maxlength" value="48" error="Personal name must not be longer than 48 characters."/>
- <xfl:validate type="regex" value="/a-z /i"/>
- </input>
- <input type="text" name="email" maxlength="128" value="jez@semlabs.co.uk">
- <xfl:sanitise type="string"/>
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="minlength" value="6" error="Email must not be shorter than 6 characters."/>
- <xfl:validate type="maxlength" value="128" error="Email must not be longer than 128 characters."/>
- <xfl:validate type="regex" value="/[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z.]{2,30}/i"/>
- </input>
- <input type="text" name="url" maxlength="128" value="http://sitelogic.co.uk/">
- <xfl:sanitise type="string"/>
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="minlength" value="6" error="URL must not be shorter than 6 characters."/>
- <xfl:validate type="maxlength" value="128" error="URL must not be longer than 128 characters."/>
- <xfl:validate type="regex" value="/url-regex/i"/>
- </input>
- <input type="radio" name="type" value="logo">
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="equals" value="logo"/>
- </input>
- <xfl:if>
- <input type="radio" name="type" value="website">
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="equals" value="website"/>
- </input>
- </xfl:if>
- <input type="checkbox" name="colour[]" value="red"/>
- <input type="checkbox" name="colour[]" value="yellow"/>
- <input type="checkbox" name="colour[]" value="pink"/>
- <textarea name="description">
- <xfl:format type="html"/>
- <xfl:sanitise type="plain-text"/>
- <xfl:validate type="required" value="1"/>
- <xfl:validate type="minlength" value="6" error="Personal name must not be shorter than 6 characters."/>
- <xfl:validate type="maxlength" value="5000" error="Description must not be longer than 5000 characters."/>
- </textarea>
- </xfl:foreach>
- <button name="put">Submit</button>
- </form>
- </xform>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement