R4R
Right Place For Right Person TM
 
R4R XForms FAQS XForms Subjective Questions And Answers

 


Tolal:29 Click: 1 2
Previous Home Next

XForms Interview Questions And Answers

Page 1

Ques: 1 What is XForms?

Ans:
We can define XForms as the new generation of HTML forms. In an XForms we use XML to create input forms on the Web. Some other points about XForms are given below: 1. Using XForms we can generate forms that are much richer and flexible than HTML forms. 2. XForms will act as form standard in XHTML2.0. 3. XForms is plateform independent and it is also device independent. 4. Use XForms to seperate logic and device from presentation. 5. Using XForms we can define data of form. 6. We can use XForms to stores and transport data into an XML document. 7. XForms also have some features like using XForms we can perform calculation and also to validate our forms. 8. XForms also help us to reduce or eleminate need of scripting. 9. XForms also a W3C Recommendation.

Ques: 2 How we can say XForms is succesors of HTML forms? 

Ans:
With using HTML forms web application are become able to accept input from user.We can say that HTML forms is a part of HTML standard.Now,web user try to solve complex transactions but HTML standard does achieve that task. We can achieve that task using XForms.Because using XForms handle a richer,more secure and device independent web input. XForms are supported by all future browsers.

Ques: 3 How Xforms is used to separate data from presentation?

Ans:
Using XForms we can perform both task to define data and to display data.To define data XForms uses XML and to display data XForms uses HTML or XHTML. Using XForms we can separate data logic of a form from its presentation.

Ques: 4 How we store and transport data using XForms?

Ans:
We can perform task of store and transport data using XForms. Using XForms we can store data or to submit data from the form. We use XML to transfer data over the net.Keep in mind XForms Store and Transform data in the form of Unicode bytes.

Ques: 5 How we can say XForms is device independent?

Ans:
We can say that XForms is device independent because it is used to separate data from presentation and we can use data models for all devices. Using XForms we can customize presentation for different user interface.Like mobile phones, handheld devices etc. Using device independent features of XForms we can add XForms element into othe XML application directly.i.e.WML(Wireless Markup Language),VoiceXML(Use to speak web data).

Ques: 6 How we can say XForms has W3C Recommendation?

Ans:
W3C Recommended XForm 1.0 in Oct 2003.We can say that it is a new generation version of HTML.

Ques: 7 How to define XForms Framework?

Ans:
Basically main purpose of XForms is to collect data. We can describe input data using XForms into two different parts. 1. XForm model 2. XForm user interface We use XForm model to describe the data and the logic means using XForm we can define what the form is, what data it contains and what it should do. We use XForm user interface to perform input and output task on data means that XForms user interface use to define the input fields and how they should be displayed.

Ques: 8 How you define XForms model?

Ans:
To describe the data we use XForms Model.We can also say that datamodel is an instance of XML document.We define data model into the XForms, inside a <model> element. Example: <model> <instance> <person> <fname/> <mname/> <lname/> </person> </instance> \<submission id="form1" action="submit.asp" method="get"/> </model> In the above example we uses <instance> element that is use to define the XML template for data to be collected and a <submission> element is used to define how we submit a data. The <instance> Element: Using <instance>element we can define the data that we collected. We use XForms to collect data for an XML document.And <instance> elementis use to define the XML document in XForms model. Example: <person> <fname/> <mname/> <lname/> </person> When XML data collect the data it will looks like that, <person> <fname>vivek</fname> <mname>kumar</mname> <lname>agarwal</lname> </person> The <submission> Element: Using this element we can describe how to submit a data into an XML document. Example: <model> <instance> <person> <fname/> <mname/> <lname/> </person> </instance> <submission id="form1" action="submit.asp" method="get"/> </model> In the above example we use attribut id="form1" attribute to identify the form.And uses the action="submit.asp" attribute to define the URL to where the form should be submitted and use method="get" attribute to define the method which is use to submit the data.

Ques: 9 How you define XForms User Interface?

Ans:
We use XForms user interface to display and get input the data. We called user interface elements of XForms as controls or input controls. Example: <input ref="fname"><label>First Name</label></input> <input ref="mname"><label>Middle Name</label></input> <input ref="lname"><label>Last Name</label></input> <submit submission="form1"><label>Submit</label></submit> In the above given I have use three <input> elements to define input fields. In example ref="fname", ref="mname" and ref="lname" attributes which is use to point <fname>,<mname> and <lname> elements in the XForms model. We use submission="form1" attribute which refers to <submission> element in the XForms model. In the above example we use <label> elements With XForms every input control element.

Ques: 10 How to use both XForms Model and XForms User Interface togather? 

Ans:
We can use both XForms Model and XForms User Interface togather like that, Example: <xforms> <model> <instance> <person> <fname/> <mname/> <lname/> </person> </instance> <submission id="form1" action="submit.asp" method="get"/> </model> <input ref="fname"><label>First Name</label></input> <input ref="mname"><label>Middle Name</label></input> <input ref="lname"><label>Last Name</label></input> <submit submission="form1"><label>Submit</label></submit> </xforms>

Ques: 11 How you define XForms Processor?

Ans:
We use XForms Processor inside the browser to submit XForm data to the target. I have you example show how to submit data into XML. Eaxmple: <person> <fname>vivek</fname> <mname>kumar</mname> <lname>agarwal</lname> </person>

Ques: 12 How you define XForms Namespace?

Ans:
XForms Namespace are used in HTML and XHTML1.0.We can perform task to use XForms Namespace to declare all XForms element with XForms Namespace. I have given you example which shows how to use XFoms Namespace. Example: <html xmlns:xf="http://www.w3.org/2002/xforms"> <head> <xf:model> <xf:instance> <person> <fname/> <mname/> <lname/> </person> </xf:instance> <xf:submission id="form1" method="get" action="submit.asp"/> </xf:model> </head> <body> <xf:input ref="fname"> <xf:label>First Name</xf:label></xf:input> <br /> <xf:input ref="mname"> <xf:label>Middle Name</xf:label></xf:input> <br /> <xf:input ref="lname"> <xf:label>Last Name</xf:label></xf:input> <br /> <br /> <xf:submit submission="form1"> <xf:label>Submit</xf:label></xf:submit> </body> </html> In above example we use XForms Namespace as 'xf:'.And you can use this XForms Namespace to call any thing.

Ques: 13 WHat is Binding in XForms?

Ans:
When XForms achieve that task to address data in XForms with use of XPath.Than it is called as Binding. I have allready told you XForms define data in two sections.These sections are: XForms model(is a XML instance for data) and XForms user interface(used to describe input and presentation of data). Than we can say that In Binding we use XPATH to made connection b/w them(these two sections).

Ans:
I have told you in binding we create coneections b/w XForms model and XForms user interface. Now,I will you how to perform binding b/w them usinfg ref attribute. Exxample:This code shows XForms model instance: <instance> <person> <name> <fname/> <mname/> <lname/> </name> </person> </instance> Now, With use of the ref attribute XForms user interface can bind <input> elements: <input ref="name/fname"> <label>First Name</label> </input> <input ref="name/mname"> <label>Middle Name</label> </input> <input ref="name/lname"> <label>Last Name</label> </input> I the above example ref="name/lname" attribute point the <fname> element in the instance model. ref attribute binds the input field with <lname> element.And to perform task to collect data from the form. It may happens that XForms user interface use ref attribute like that, <input ref="/person/name/fname"> <label>First Name</label> </input> <input ref="/person/name/mname"> <label>Middle Name</label> </input> <input ref="/person/name/lname"> <label>Last Name</label> </input> In the above example first /(slash) use to indicate the root of an XML document.

Ques: 14 Define XPath?

Ans:
We use Xpath to define parts of an XML document.It is an W3C standard. Main task given by XPath is that, XPath uses pth expression which helps to identify each node of an XML document. I have given you a path expression like that, /person/lname We use this path expression to address the node lname. <person> <fname>vivek</fname> <mname>kumar</mname> <lname>agarwal</lname> </person>

Ques: 15 How to perform bindimg using ref atribute?
Ques: 16 How to perform binding using bind attribute?

Ans:
We can also perform binding b/w the XForms model and XForms user interface With bind attribute like that,Example:I have given you XForms model instance:<model><instance> <person> <name> <fname/> <mname/> <lname/> </name> </person></instance><bind nodeset=\"/person/name/fname\" id=\"firstname\"/><bind nodeset=\"/person/name/mname\" id=\"middlename\"/><bind nodeset=\"/person/name/lname\" id=\"lastname\"/></model> Now, Using bind attribute XForms user interface can bind <input> elements like that:<input bind=\"firstname\"><label>First Name</label></input><input bind=\"middlename\"><label>Middle Name</label></input><input bind=\"lastname\"><label>Last Name</label></input> Using binding we can easily deal with multiple instance model and multiple forms.

Ques: 17 How you define controls in XForms?

Ans:
XForms controls are also told as user interface elements we use to control user interface of XForms. I have given you some main common controls given below: <input> <submit> a ref attribute is attach with each controls element.That is use to point the XForms data model of each control element.

Ques: 18 How you define input control?

Ans:
One of the most common XForms control is input control. Example: <input ref="name/fname"> <label>First Name</label> </input> <input ref="name/mname"> <label>Middle Name</label> </input> <input ref="name/lname"> <label>Last Name</label> </input> These input control will display like that, First Name: Middle Name: Last Name:

Ques: 19 What is label element?

Ans:
I told you when you want to perform input controls than <label> element is necessary child element for this. Because with use of <label> element is secure and we used that forms in all different types of devices.i.e. Label will be spoken for voice software.

Ques: 20 How to perform secret control?

Ans:
The secret control are degined to perform some special task like that input passwords or other hidden information: <secret ref="name/password"> <label>Pass:</label> </secret>


Goto Page:

1 2
Share |

XForms Objective

XForms Objective Questions And Answers

XForms Interview Questions And Answers

XForms Interview Questions And Answers

R4R,XForms Objective, XForms Subjective, XForms Interview Questions And Answers,XForms,XForms Interview,XForms Questions ,XForms Answers

New Updates

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R