Retrive vaules XPL to xhtml

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Retrive vaules XPL to xhtml

Suryaprakash
Hi All,

In my application I am writing my XPL and XHTMLS in following manner,
I want retrive the Data into a xhtml throught xpl.
Is it the proper way of doing?



sample.xpl

         
                <sql:execute>
                      <sql:query>
                                select * from Demo
                        </sql:query>
                                <sql:result-set>
                        <sql:row-iterator>
                                <orbeon>                                                                       
                                        <id>
                                           <sql:get-column-value column="id"/>
                                        </id>
                                        <abc>
                                           <sql:get-column-value column="abc_id"/>
                                        </abc>
                                  </orbeon>
                         </sql:row-iterator>
                        </sql:result-set>
                  </sql:execute>       


<p:output name="data" id="config"/>


Example.xhtml

 <head>
                <title>User Fomrs</title>
                 <p:input name="data" href="#instance"/>
                 <xforms:model>
                        <xforms:instance id="main">
                           <xi:include href="input:data"/>
                        </xforms:instance>
                       
                 </xforms:model>
            </head>
            <body>
                <xforms:group ref="orbeon" ><xforms:output ref="id"/>
                <xforms:group ref="orbeon" ><xforms:output ref="abc_id"/>
                       
       
            </body>
</html>
Thanks, Suryaprakash Raghuwanshi ------------------------------------------------------------------ Before printing, think about the environment
Reply | Threaded
Open this post in threaded view
|

Re: Retrive vaules XPL to xhtml

Suryaprakash


I got the Solution :-in this xpl we must create a diff. processer for diff. sql query
 
Thanks, Suryaprakash Raghuwanshi ------------------------------------------------------------------ Before printing, think about the environment