Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browsers not displaying XFORMS controls

Tags:

xhtml

xforms

I am learning XForms. And i am trying to display this in browsers like IE9, Chrome and Firefox 14.

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms">
   <head>
      <title>Hello World in XForms</title>
      <xf:model>
         <xf:instance xmlns="">
            <data>
               <PersonGivenName/>
            </data>
         </xf:instance>
      </xf:model>
   </head>
   <body>
      <p>Type your first name in the input box. <br/>
        If you are running XForms, the output should be displayed in the output area.</p>   
         <xf:input ref="PersonGivenName" incremental="true">
            <xf:label>Please enter your first name: </xf:label>
         </xf:input>
         <br />
         <xf:output value="concat('Hello ', PersonGivenName, '. We hope you like XForms!')">
            <xf:label>Output: </xf:label>
         </xf:output>
   </body>
</html> 

But textbox is not appearing. What is the problem? I have tried to search Xfroms plugins for browsers but found nothing.

like image 750
Farhad Jabiyev Avatar asked Apr 19 '26 22:04

Farhad Jabiyev


1 Answers

XForms is not natively supported in browsers but there are client-side implementations such as XSLTForms (which is based on XSLT and Javascript).

-Alain

like image 149
Alain Couthures Avatar answered Apr 24 '26 17:04

Alain Couthures



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!