A scheme to realize dynamic display of Web page content with xml+jsp

Source: Internet
Author: User
Tags xsl xsl stylesheet ultraedit

I. Introduction to XML Technology

XML (extensible Markup Language?? Extensible Markup Language is an extensible source markup language that can be used to define other languages.

It is a simplified subset of SGML, which is designed specifically for the web environment, which means that it must handle data-oriented (rather than publishing-oriented), short-lived (and actually dynamically generated) information.

XML vs. HTML:

XML syntax is strict, data is separated from display, easy to interact with other programs and retrieve data.

HTML syntax is very tolerant, data and display are all together, retrieving data is difficult.

XML and explicit DOM objects, you can read and write XML files to add data deletion operations.

HTML does not have this explicit object to complete the operation.

XML overcomes the deficiencies of HTML, standardizes the documents transmitted on the network, and assigns labels a certain meaning.

XML is quickly supported as a common data Interchange format in a network system, and the practical benefits of using XML are:

Structured?? There are any complex levels of the number-torsion model.

Scalability?? The root needs to define a new identity.

Verify?? Check the structural correctness of the data.

Independence and media?? Publish content in a variety of ways.

Independent of suppliers and platforms?? Use standard commercial software and even text tools to process any document that conforms to (XML standard).

XML documents can transform and format XML documents through Extensible Style language XSL (extensible Style Language xsl). This enables the separation of data and page styles.

Second, using JSP technology to implement XML

JSP provides a series of features that can ideally work in conjunction with XML, and JSP pages can contain any type of text data, so JSP can directly generate documents containing XML. Also, JSP can use a powerful Java platform to parse and transform XML information and documents. Because JSP is also part of the Java Software Environment, JSP can also use API objects to process XML data. JSP technology's powerful function and very good flexibility coupled with XML technology standardized data, you can perfect the dynamic display of the Web page function.

Third, development environment

1. Editing tools

Now, more and more tools are being developed to develop XML documents, from the enterprise-level XML development environment that links large corporate databases to simple small text editors that simplify the markup development process. The latest tools can be learned from http://www.xml.com. Currently, several common development tools are described below:

The UltraEdit is developed by the IdM Computer Solution Company and can be downloaded to http://www.ibmcomp.com or http://www.ultraedit.com for free with limited availability. It is a Windows-like Resource Manager interface with strong text editing capabilities.

XML Spy Icon Information-systems the company's XML Spy is an integrated development environment for XML, including all aspects of XML development, powerful and easy to use. XML Spy is a truly complete XML development environment. It includes all the elements needed to develop XML in a simple and easy-to-use product. It includes: XML editor and validation, SCHEMA/DTD editor and Validation, XSL Editor, and transformations. Also contains the latest XML draft, is a rare good software.

XML Writer This software was developed by Wattle Software-chris Howard and can be downloaded from http://XMLwriter.net (trial). Used under Window 95/98/2000 and Windows NT4, it also has a familiar Windows interface that provides a project management environment that can be planed, viewed, engineered, included, user customizable toolbars, shortcut keys, and display icons for commands. The available XSL stylesheet transforms an XML file into an HTML file, not only using XSL, but also using XQL, testing XML with a DTD or XML Schema, incorporating CSS directly into XML in XML format, providing online help, and its support for Chinese is better.

2. XML server

Because XML technology has great potential for development, many vendors provide their own XML servers, including Apache, Microsoft, Sun, and so on.

3, browsing the XML tools

Most scenarios now store XML in a database, take out code when needed, combine it with data, convert it to HTML using XSL, and then send it to the browser. So browsing XML is generally selected by IE to Netscape, and the newer the version, the better the support for XML documents.

Related Article

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.