Learn XML english ebook

41 252 0
Learn XML english ebook

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Contents 1 PART 1 Getting Started [...]... valid XML documents (XHTML If you write HTML Web pages that conform to the XHTML application of XML, you can validate, display, and work with the pages using standard XML tools, such as XML DOM scripts, which are discussed in Chapter 11 See http://www.w3.org/ TR/xhtml1.) XML Applications for Enhancing XML Documents In addition to XML applications for describing specific classes of documents, several XML. .. “3 13 Why XML? Chapter 1 Why XML? 14 XML Step by Step “7 The XML design should be prepared quickly.” A standard such as XML can, of course, be viable only if the community of programmers and users adopts it The XML standard therefore needed to be completed before this community began to adopt alternative standards, which software companies tend to produce at a rapid pace “8 The design of XML shall... formal and concise.” The XML specification includes a formal XML grammar, which uses a notation known as Extended Backus-Naur Form (EBNF) This notation, although difficult to read casually, resolves ambiguities and ultimately makes it easier to write XML documents and especially XML software tools, further encouraging XML s adoption “9 XML documents shall be easy to create.” For XML to be a practical... information As the quotation at the beginning of the chapter states, XML was designed for interoperability with HTML The Official Goals of XML The following are the 10 design goals for XML as stated in the official XML specification posted on the W3C Web site (http://www.w3.org/TR/REC -xml) “1 XML shall be straightforwardly usable over the Internet.” XML was designed primarily for storing and delivering information... XML document structure I XML Schema lets you write detailed schemas for your XML documents using standard XML syntax It provides a more powerful alternative to writing DTDs I XML Linking Language (XLink) lets you link your XML documents It allows multiple link targets and other advanced features, and is considerably more powerful than the HTML hyperlink mechanism XLink is used in conjunction with XML. .. Internet evolves 1 19 Why XML? Chapter 1 Why XML? CHAPTER 21 Creating and Displaying Your First XML Document In this chapter, you’ll gain an overview of the entire process of creating and displaying an XML document in a Web browser First you’ll create a simple XML document, explore the document’s structure, and learn some of the fundamental rules for creating a well-formed XML document Then you’ll discover... lines: < ?xml version=”1.0"?> .xml > The first line is the XML declaration, which states that this is an XML document and gives the XML version number (At the time of this writing, the latest XML version was 1.0.) The XML declaration is optional, although the specification states that it should be included If you do include an XML declaration, it must appear at the very beginning... Inventory .xml > to .xml > Listing 2-3 shows the complete XML document (You’ll find a copy of this listing on the companion CD under the filename Inventory01 .xml. ) 5 Use your text editor’s Save As command to save a copy of the modified document under the filename Inventory01 .xml Be sure to save it in the same file folder in which you saved Inventory01.css Inventory01 .xml < ?xml. .. handling XML be easy to write, but also XML documents themselves must be easy to create “10 Terseness in XML markup is of minimal importance.” In keeping with goal 6, intelligibility of XML is more important than brevity Part of the problem in using SGML as a universal Web markup language is the excessive terseness it fosters by allowing you to omit markup in certain situations As you learn XML, you’ll... Chapter 11, the Internet Explorer XML processor Creating and Displaying Your First XML Document 2 Chapter 2 Creating and Displaying Your First XML Document 26 XML Step by Step makes comment text available to Web page scripts, and as explained in Chapter 12, it also makes comments available to XSLT style sheets.) note The XML processor is the software module that reads the XML document and provides access . formatting information. Chapter 1 Why XML? 13 1 Why XML? “3 XML shall be compatible with SGML.” XML was designed to be a subset of SGML, so that every valid XML document would also be a conformant. ultimately makes it easier to write XML documents and especially XML software tools, further encouraging XML s adoption. “9 XML documents shall be easy to create.” For XML to be a practical markup language. using standard XML tools, such as XML DOM scripts, which are discussed in Chapter 11. See http://www.w3.org/ TR/xhtml1.) XML Applications for Enhancing XML Documents In addition to XML applications

Ngày đăng: 22/10/2014, 17:24

Tài liệu cùng người dùng

Tài liệu liên quan