unable to view the output when a new instance model is added ..

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

unable to view the output when a new instance model is added ..

jyotthi
Hi
I am trying to do the example in the documentation provided , with the book-instance instance i can able to view the output on the broswer ,but when i add another language-instance then i am not get any output whatz the mistake i am doin here


<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xhtml="http://www.w3.org/1999/xhtml"
      xmlns:xforms="http://www.w3.org/2002/xforms"
      xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns:ev="http://www.w3.org/2001/xml-events"
      xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
<head>
        <xforms:model>

   <xforms:instance id="languages-instance">
                <languages xmlns="">
                    <language>
                        <name>English</name>
                        <value>en</value>
                    </language>
                    <language>
                        <name>French</name>
                        <value>fr</value>
                    </language>
                    <language>
                        <name>Spanish</name>
                        <value>es</value>
                    </language>
                </languages>
            </xforms:instance>

            <xforms:instance id="books-instance">
                <books xmlns="">
                        <book>
                        <title/>
                        <author/>
                        <language/>
                        <link/>
                        <rating/>
                        <notes/>
                        </book>
                </books>
                </xforms:instance>

                <xforms:bind nodeset="instance('books-instance')/book">
                <xforms:bind nodeset="title" required="true()"/>
                <xforms:bind nodeset="author" required="true()"/>
                </xforms:bind>
        </xforms:model>
       
       
</head>

<body>
        <xforms:group ref="book">
                <xforms:input ref="title">
                        <xforms:label>Title</xforms:label>
                </xforms:input>
                <br/>
                <xforms:input ref="author">
                        <xforms:label>Author</xforms:label>
                </xforms:input>
                <br/>
               
        </xforms:group>
</body>
</html>


Thankss