当前位置:编程学习 > JAVA >>

为啥我写的这个xforms表单的简单例子没效果呢?

<?xml version="1.0" encoding="ASCII"?>
<html xmlns="http://www.w3.org/1999/xhtml"
 xmlns:xforms="http://www.w3.org/2002/XForms">
<head>
<title>Describe a composer</title>

<xforms:model id="model_composers">

<xforms:instance xmlns="">
<composers>
<composer>
<name></name>
<genre></genre>
<accessibility></accessibility>
<difficulty></difficulty>
<totalscore></totalscore>
<examples>
<example></example>
<example></example>
<example></example>
</examples>
</composer>
</composers>
</xforms:instance>

 <xforms:submission id="submit_model_composers"
 action="http://XFormstest.org/cgi-bin/showinstance.sh" method="post"/>

</xforms:model>

</head>
<body>
<xforms:input ref="/composers/composer/name">
<xforms:label>Name: </xforms:label>
</xforms:input>
<br />
<xforms:input ref="/composers/composer/genre">
<xforms:label>Genre: </xforms:label>
</xforms:input>
<br />
<xforms:input ref="/composers/composer/accessibility">
<xforms:label>Accessibility: </xforms:label>
</xforms:input>
<br />
<xforms:input ref="/composers/composer/difficulty">
<xforms:label>Difficulty: </xforms:label>
</xforms:input>
<br />
<xforms:input ref="/composers/composer/totalscore">
<xforms:label>Totalscore: </xforms:label>
</xforms:input>
<br />
<xforms:repeat
 id="repeat_example_model_composers"
 nodeset="/composers/composer/examples/example">
<xforms:input ref=".">
<xforms:label>Example: </xforms:label>
</xforms:input>
</xforms:repeat>
<br />
<xforms:submit submission="submit_model_composers">
<xforms:label>Submit</xforms:label>
</xforms:submit>

</body>
</html>
补充:Java ,  Web 开发
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,