Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 357 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
357
Dung lượng
8,3 MB
Nội dung
[...]... book’s detail page to obtain all the source code for the book Because many books have similar titles, you may find it easiest to search by ISBN; this book’s ISBN is 0-4 7 1-7 911 9-9 (changing to 97 8-0 -4 7 1-7 911 9-5 as the new industry-wide 13-digit ISBN numbering system is phased in by January 2007) Once you download the code, just decompress it with your favorite compression tool Alternately, you can go... presenting XML, styling it for browser presentation You can follow the examples to produce a display on your own computer Chapter 5 looks at stylesheets further and provides data on converting XML content online using the XML transformation language, XSLT Chapter 6 examines options for rendering XML to print In this chapter you produce printable data sheets using the XSL-FO technology XML- to-PDF is covered... W3C site, are: ❑ XML shall be straightforwardly usable over the Internet ❑ XML shall support a wide variety of applications ❑ XML shall be compatible with SGML ❑ It shall be easy to write programs that process XML documents ❑ The number of optional features in XML is to be kept to the absolute minimum, ideally zero ❑ XML documents should be human-legible and reasonably clear ❑ The XML design should... to create an XML document, after which you will know the basic syntax and can create your own XML documents from scratch Following the rules results in your document being well-formed XML so that a parser — or browser — can use it Save your file as muscadine .xml Your document will look much like the one shown in Figure 1-1 Figure 1-1 If your text editor adds txt extension instead of an xml extension,... one-year-old, Alexander, for his deep interest in my writing—or at least his deep interest in my laptop—and his eagerness to help with the typing —Michael D Thomas x Contents Acknowledgments Introduction Chapter 1: XML and the Enterprise Problem Design A Brief History of XML Understanding XML Basics Exploring the Winery Markup Example Determining an Information Model for the Winery XML Problems That XML. .. Your Data Problem Design Creating XML from Relational Data with SQL /XML XQuery and Relational Data 98 99 105 106 106 107 108 122 123 123 125 125 129 130 130 131 131 131 133 136 138 141 144 145 146 147 147 148 148 149 157 181 184 185 185 186 186 191 xiii Contents Understanding Native XML and XML- Enhanced Relational Databases SQL with XML Extensions Solution Generating XML from Relational Data Including... There is also an XML formatting and transformation language — XSLT (the Extensible Stylesheet Language Transformation — which you can use to produce XML or turn XML into another type of text-based document (you’ll learn more about this later in the book) Problems That XML Addresses To better understand how XML can help your business projects, take a look at some of the ways it’s used: 10 XML and the Enterprise... covered throughout this book XML Declaration An XML document may begin with an XML declaration, which is a line that lets processors, tools, and users know that the file is XML and not some other markup language Declarations are optional and need not be used Here’s what it looks like: < ?xml version=”1.0”?> 7 Chapter 1 If a declaration is used, it must be at the top of the XML file, above the root element’s... file as chunks are combined, and an XML declaration anywhere but first in the file will throw an error If you have XML that will stand alone, and that might be handled by automated processes that verify if the files are XML, then you may want to include the XML declaration to ensure proper recognition of the files as XML documents Attributes and Information Modeling XML elements can contain more than... Language (XML) and are seeking some direction This book provides information about XML and the issues involved in designing XML- based solutions for business problems It does so in a case-study format, with each chapter taking one part of the single, main project, and leading you through the design of a solution for that, so that by the end of the book, you will understand every aspect of using XML to . Canada ISBN-13: 97 8-0 -4 7 1-7 911 9-5 ISBN-10: 0-4 7 1-7 911 9-9 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 1B/SV/QV/QW/IN Library of Congress Cataloging-in-Publication Data: XML problem. al.]. p. cm. Includes index. ISBN-13: 97 8-0 -4 7 1-7 911 9-5 (paper/website) ISBN-10: 0-4 7 1-7 911 9-9 (paper/website) 1. XML (Document markup language) 2. Web sites-Design. I. Amiano, Mitch, 1963 QA76.76.H94X45474. Winery XML 6 Problems That XML Addresses 10 Solution 17 Summary 17 Chapter 2: Well-Formed XML 19 Problem 19 Design 19 Producing a Well-Formed XML Document 20 Introducing Valid XML 23 Developing Your