XML mode-detailed explanation of XForms and customer invoices

Source: Internet
Author: User
The XFormsXFormsXML standard is used to define different components (input controls such as fields, radio buttons, and lists) in a form and verify the information that you want to provide in the form. The XFormsXML standard is very similar to HTML and XHTML form tags familiar to Web developers and will become part of the XHTML2.0 standard. XFormsXML is based on simple models and views. the XFormsXForms XML standard is used to define different elements (input controls such as fields, radio buttons, and lists) in a form and verify the information you want to provide in the form. The XForms XML standard is very similar to HTML and XHTML form markup familiar to Web developers and will become part of the XHTML 2.0 standard. XForms XML is based on simple models and views.
The XForms XML standard is used to define different components (input controls such as fields, single-choice buttons, and lists) in a form and to verify the information that you want to provide in the form.
The XForms XML standard is very similar to HTML and XHTML form markup familiar to Web developers and will become part of the XHTML 2.0 standard.
XForms XML is based on simple models, views, and controller formats. The model is the overall description of the form, including fields, input constraints, and data submission methods. A view defines controls, groups, and referenced model fields in a form. The format and presentation of form controls are controlled by CSS.
The XForms standard extends the traditional HTML form definition by dividing form information in more detail. Dynamic elements can be used to fill a form (currently, they can only be implemented using JavaScript or Ajax elements ).
In listing 11, you can see a simple text input box and a pop-up selection box.
Listing 11. simple text input box and pop-up selection box

        XForms Sample    
   
      
         
          
          
        
     
      
       
   
  
   Title:
    
      
   
    Mr
       
   
    Mr
     
    
      
   
    Mrs
       
   
    Mrs
     
  
     
       
  
   First name: 
      
     
       
  
   Last name: 
      
     
     
       
  
   Output: 
      
    



You can use the Firefox XForms extension to view the XForms. Result 2 is displayed.
Figure 2. use Firefox XForms extension to view XForms
Customer invoice
An old problem in many business activities is the migration from a paper customer invoice system to computer processing. To create an invoice structure, you must carefully consider different types and repeated elements.
In the past, the exchange of commercial information such as invoices had to establish a very large structure and definition. The international invoice information exchange standard included hundreds of fields. Without an effective way to exchange data, it is very difficult to share invoices, orders, and other data.
Because there are no uniform standards, many organizations have developed various versions of core invoice standards. Among them, the OASIS group development standards may be the most well-known and recognized by a large number of companies and organizations.
This structure is part of the larger Universal Business Logic (UBL) framework developed by OASIS, including multiple modes and workflows, from order, invoice printing to payment. This system is very complicated and cannot be discussed in this article. However, if you need a flexible and interoperable system, UBL is a good start point.

The above is the detailed description of the XML mode-XForms and customer invoices. For more information, see other related articles in the first PHP community!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.