.. enter markdown body .. </entry> </xf:instance> <xf:bind required='true()' nodeset="instance('copia_entry')/atom:category" constraint="contains(text(),',') and string-length(normalize-space(text()))>0"/> <xf:bind required='true()' nodeset="instance('copia_entry')/atom:author | instance('copia_entry')/atom:title | instance('copia_entry')/atom:content" /> <xf:submission id="echoTest" action="http://xformstest.org/cgi-bin/echo.sh" method="post" replace="all"/> <xf:submission id="entryPost" action="http://uche.ogbuji.net/copiaentry/" method="post" replace="none" > <xf:message level="modal" ev:event="xforms-submit-error">Submission Error!</xf:message> <xf:message level="modal" ev:event="xforms-submit-done">Successful Submission</xf:message> </xf:submission> </xf:model> </head> <body> <h3 class="title">New Copia Entry: <xf:output value="atom:title"/></h3> <xf:secret class="author_input" ref="atom:author"> <xf:label>Author</xf:label> <xf:hint>Enter the password for authentication and author identity</xf:hint> </xf:secret> <xf:input class="category_input" ref="atom:category"> <xf:label class="input_label">Categories</xf:label> <xf:hint>Enter a comma-seperated list of subjects associated with this post</xf:hint> </xf:input> <div> <xf:switch> <xf:case id="hide_content"> <xf:trigger class="leftPadded"> <xf:label>Show Content</xf:label> <xf:action ev:event="DOMActivate"> <xf:toggle case="show_content"></xf:toggle> </xf:action> </xf:trigger> </xf:case> <xf:case id="show_content"> <xf:textarea class="content_input" ref="atom:content"> <xf:label>Content</xf:label> <xf:hint>Enter the entry content in Markdown format</xf:hint> </xf:textarea> <xf:trigger> <xf:label>Hide</xf:label> <xf:action ev:event="DOMActivate"> <xf:toggle case="hide_content"></xf:toggle> </xf:action> </xf:trigger> </xf:case> </xf:switch> </div> <xf:input class="title_input" ref="atom:title"> <xf:label>Title</xf:label> <xf:hint>Enter the title of the new entry</xf:hint> </xf:input> <div class="leftPadded"> <xf:submit submission="entryPost" model="entryModel"> <xf:label>Submit</xf:label> </xf:submit> <span>Markdown <a target="_blank" href="http://daringfireball.net/projects/markdown/syntax">syntax</a></span> </div> <p id="status"></p> </body> </html>