Details

XML For Dummies


XML For Dummies


4. Aufl.

von: Lucinda Dykes, Ed Tittel

20,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 20.05.2005
ISBN/EAN: 9780764599682
Sprache: englisch
Anzahl Seiten: 384

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

See how XML works for business needs and RSS feeds<br /> <br /> Create consistency on the Web, or tag your data for different purposes<br /> <br /> Tag -- XML is it! XML tags let you share your format as well as your data, and this handy guide will show you how. You'll soon be using this markup language to create everything from Web sites to business forms, discovering schemas and DOCTYPES, wandering the Xpath, teaming up XML with Office 2003, and more.<br /> <br /> Discover how to<br /> * Make information portable<br /> * Use XML with Word 2003<br /> * Store different types of data<br /> * Convert HTML documents to XHTML<br /> * Add CSS to XML<br /> * Understand and use DTDs
<p><b>Introduction 1</b></p> <p>About This Book 1</p> <p>Conventions Used in This Book 2</p> <p>Foolish Assumptions 3</p> <p>How This Book Is Organized 4</p> <p>Part I: XML Basics 4</p> <p>Part II: XML and the Web 4</p> <p>Part III: Building in Validation with DTDs and Schemas 5</p> <p>Part IV: Transforming and Processing XML 6</p> <p>Part V: XML Application Development 6</p> <p>Part VI: The Part of Tens 7</p> <p>Glossary 7</p> <p>Icons Used in This Book 7</p> <p>Where to Go from Here 8</p> <p><b>Part I: XML Basics 9</b></p> <p><b>Chapter 1: Getting to Know XML 11</b></p> <p>XML (eXtreMely cooL) 12</p> <p>Mocking up your own markup 12</p> <p>Separating data and context 12</p> <p>Making information portable 13</p> <p>XML means business 13</p> <p>Figuring Out What XML Is Good For 14</p> <p>Classifying information 14</p> <p>Enforcing rules on your data 15</p> <p>Outputting information in a variety of ways 16</p> <p>Using the same data across platforms 17</p> <p>Beyond the Hype: What XML Isn’t 18</p> <p>It’s not just for Web pages anymore 19</p> <p>It’s not a database 20</p> <p>It’s not a programming language 20</p> <p>Building XML Documents 21</p> <p><b>Chapter 2: Using XML for Many Purposes 23</b></p> <p>Moving Legacy Data to XML 23</p> <p>The Many Faces of XML 24</p> <p>Creating XML-enabled Web pages 24</p> <p>Print publishing with XML 25</p> <p>Using XML for business forms 28</p> <p>Incorporating XML into business processes 29</p> <p>Serving up XML from a database 31</p> <p>Alphabet Soup: Even More XML 31</p> <p><b>Chapter 3: Slicing and Dicing Data Categories: The Art of Taxonomy 33</b></p> <p>Taking Stock of Your Data 33</p> <p>Looking at business practices and partners 34</p> <p>Gathering some content 34</p> <p>Checking whether a DTD or schema already exists 35</p> <p>Searching for a schema repository 36</p> <p>Breaking Down Data in Different Ways 37</p> <p>Winnowing out the wheat from the chaff 38</p> <p>Types of data that can be stored in XML 39</p> <p>Developing Your Taxonomy 39</p> <p>Testing Your Taxonomy 41</p> <p>Using trial and error for the best fit 41</p> <p>Testing your content analysis 42</p> <p>Looking Ahead to Validation 43</p> <p><b>Part II: XML and the Web 45</b></p> <p><b>Chapter 4: Adding XHTML for the Web 47</b></p> <p>HTML, XML, and XHTML 47</p> <p>What HTML does best 48</p> <p>The limits of HTML 49</p> <p>Comparing XML and HTML 50</p> <p>Using XML to describe data 51</p> <p>The benefits of using HTML 53</p> <p>The benefits of using XML 53</p> <p>XHTML Makes the Move to XML Syntax 54</p> <p>Making the switch 55</p> <p>Every element must be closed 56</p> <p>Empty elements must be formatted correctly 56</p> <p>Tags must be properly nested 57</p> <p>Case makes a difference 57</p> <p>Attribute values are in quotation marks 58</p> <p>Converting a document from HTML to XHTML 59</p> <p>The Role of DOCTYPE Declarations 62</p> <p><b>Chapter 5: Putting Together an XML File 65</b></p> <p>Anatomy of an XML File 65</p> <p>The XML declaration 67</p> <p>Marking up your content 68</p> <p>Playing by the Rules: Well-Formed Documents 74</p> <p>Adding Style for the Web 76</p> <p>Seeking Validation with DTD and XML Schema 78</p> <p>Why describe XML documents? 79</p> <p>Choosing between DTD and XML Schema 80</p> <p><b>Chapter 6: Adding Character(s) to XML 83</b></p> <p>About Character Encodings 84</p> <p>Introducing Unicode 85</p> <p>Character Sets, Fonts, Scripts, and Glyphs 87</p> <p>For Each Character, a Code 88</p> <p>Key Character Sets 89</p> <p>Using Unicode Characters 91</p> <p>Finding Character Entity Information 93</p> <p><b>Chapter 7: Handling Formatting with CSS 95</b></p> <p>Viewing XML on the Web with CSS 96</p> <p>Basic CSS Formatting: CSS1 97</p> <p>The Icing on the Cake: CSS2 98</p> <p>Building a CSS Stylesheet 98</p> <p>Adding CSS to XML 99</p> <p>A simple CSS stylesheet for XML 101</p> <p>Dissecting a simple CSS stylesheet 102</p> <p>Linking CSS and XML 106</p> <p>Adding CSS to XSLT 107</p> <p><b>Part III: Building In Validation with DTDs and Schemas 109</b></p> <p><b>Chapter 8: Understanding and Using DTDs 111</b></p> <p>What’s a DTD? 112</p> <p>When to use a DTD 113</p> <p>When NOT to use a DTD 113</p> <p>Inspecting the XML Prolog 114</p> <p>Examining the XML declaration 115</p> <p>Discovering the DOCTYPE 116</p> <p>Understanding comments 116</p> <p>Processing instructions 117</p> <p>How about that white space? 117</p> <p>Reading a DTD 118</p> <p>Using Element Declarations 119</p> <p>Using the EMPTY element type and the ANY element type 120</p> <p>Adding mixed content 121</p> <p>Using element content models 122</p> <p>Declaring Attributes 123</p> <p>Discovering Entities 125</p> <p>General entities 126</p> <p>Parameter entities 128</p> <p>Understanding Notations 130</p> <p>Calling a DTD 131</p> <p>Internal DTDs 131</p> <p>External DTDs 132</p> <p>When to use an internal or external DTD 133</p> <p><b>Chapter 9: Understanding and Using XML Schema 135</b></p> <p>What’s an XML Schema? 136</p> <p>So Many Datatypes, So Little Time 138</p> <p>XML Prolog 139</p> <p>Document Structures 141</p> <p>Element declarations 141</p> <p></confirmOrder> Attribute declarations 144</p> <p>Attribute groups 144</p> <p>What about that white space? 145</p> <p>Datatype Declarations 148</p> <p>Simple datatypes 148</p> <p>Complex datatypes 149</p> <p>Defining constraints and value checks 149</p> <p>Dealing with Entities, Notations, and More 150</p> <p>Annotations 151</p> <p>Deciding When to Use a Schema 152</p> <p>Referencing XML Schema Documents 153</p> <p>The inside view: Referencing a schema in an XML document 153</p> <p>Calling for outside support: Referencing external schemas in your schema 153</p> <p>Double-Checking Your Schemas and Documents 155</p> <p><b>Chapter 10: Building a Custom XML Schema 157</b></p> <p>Doing the Validity Rag 157</p> <p>Step 1: Understanding Your Data 159</p> <p>Step 2: Being the Root of All Structure: Elements 159</p> <p>Step 3: Building Content Models 161</p> <p>Step 4: Using Attributes to Shed Light on Data Structure 163</p> <p>Step 5: Using Datatype Declarations to Define What’s What 164</p> <p>Tricks of the Trade 167</p> <p>Creating a Simple Schema 168</p> <p>Using a Schema with an XML File in Word 2003 170</p> <p><b>Chapter 11: Modifying an Existing Schema 173</b></p> <p>Trading Control for Flexibility 174</p> <p>Eliciting Markup from an XML Schema 174</p> <p>Modifying a Schema 176</p> <p>Using Datatypes Effectively 177</p> <p>Using datatypes with data-intensive content 177</p> <p>Using datatypes with text-intensive content 179</p> <p>Making Elements Work Wisely and Well 180</p> <p>Creating crafty content models 180</p> <p>A matter of selection 181</p> <p>Mixing up the order 183</p> <p>Using Complex Datatypes 183</p> <p>When XML Schemas Collide: Namespaces 185</p> <p>Including External Data 188</p> <p>Including/Excluding Document Content 188</p> <p>Converting DTDs to Schemas 190</p> <p><b>Part IV: Transforming and Processing XML 195</b></p> <p><b>Chapter 12: Handling Transformations with XSL 197</b></p> <p>The Two Faces of XSL 198</p> <p>Xslt 198</p> <p>Xsl-fo 200</p> <p>XSL Stylesheets Are XML Documents 201</p> <p>A Simple Transformation Using XSLT 202</p> <p>An XSLT Stylesheet for Converting XML to HTML 202</p> <p>The pieces of the stylesheet puzzle 205</p> <p>Processing element content 207</p> <p>Dealing with repeating elements 209</p> <p>Creating an XSLT Stylesheet with XSLT Editors 210</p> <p><b>Chapter 13: The XML Path Language 215</b></p> <p>Why Do You Need Directions? 216</p> <p>XPath document trees 217</p> <p>Understanding XPath nodes 218</p> <p>XPath Directions and Destinations 220</p> <p>XPath Syntax 221</p> <p>Some simple location paths 222</p> <p>Adding expressions 223</p> <p>Taking steps along the XPath 223</p> <p>Looking at attributes 224</p> <p>Going backward 224</p> <p>Reversing direction 225</p> <p>Null results 225</p> <p>Getting back to your roots 226</p> <p>XPath functions 226</p> <p>Using XPath with XMLSpy 226</p> <p>The Short Version 228</p> <p>Child-axis abbreviations 229</p> <p>Attribute-axis abbreviation 229</p> <p>Predicate and expression abbreviations 229</p> <p>Some more abbreviations 230</p> <p>What’s New in XPath 2.0? 231</p> <p>Where to Now? 233</p> <p><b>Chapter 14: Processing XML 235</b></p> <p>Frankly, My Dear, I Don’t Give a DOM 235</p> <p>Keeping in touch with the family 238</p> <p>Understanding DOM structure 238</p> <p>What Goes In Must Come Out: Processing XML 240</p> <p>So many processors, so little time 242</p> <p>Which processor is right for you? 243</p> <p><b>Part V: XML Application Development 245</b></p> <p><b>Chapter 15: Using XML with Web Services 247</b></p> <p>What’s Up with Web Services? 248</p> <p>A Web Services Architecture 251</p> <p>Transport: Moving XML messages 252</p> <p>Packaging/Extensions: Managing information exchange 253</p> <p>Description: Specifying services and related components 254</p> <p>Discovery: Finding what’s available 255</p> <p>Where Will Web Services Lead? 256</p> <p><b>Chapter 16: XML and Forms 259</b></p> <p>Collecting Information with Forms: The Basics 260</p> <p>HTML Forms 260</p> <p>XML Forms 261</p> <p>XForms 261</p> <p>InfoPath 267</p> <p><b>Chapter 17: Serving Up the Data: XML and Databases 271</b></p> <p>Using Databases with XML 272</p> <p>Text-intensive XML 272</p> <p>Data-intensive XML 273</p> <p>Creating XML from Database Files 273</p> <p>Using Word 2003 274</p> <p>Using InfoPath 275</p> <p>Using XMLSpy 278</p> <p>Using XML with Access 2003 281</p> <p><b>Chapter 18: XML and RSS 285</b></p> <p>Introducing RSS 286</p> <p>Sorting Out the Versions 286</p> <p>RSS 0.9x 287</p> <p>Rss 2.0/2.01 290</p> <p>Rss 1.0 291</p> <p>Validating an RSS Feed 295</p> <p>Creating RSS Feeds 296</p> <p>Get Syndicated! 297</p> <p>Using an RSS Reader 298</p> <p><b>Part VI: The Part of Tens 299</b></p> <p><b>Chapter 19: XML Tools and Technologies 301</b></p> <p>Creating Documents with Authoring Tools 301</p> <p>Epic Editor 302</p> <p>Turbo XML v2.4.1 303</p> <p>XMetaL Author 4.5 303</p> <p>XML Pro v2.0.1 303</p> <p>XML Spy 2005 304</p> <p>Checking Documents with Parser Tools 304</p> <p>Ælfred 305</p> <p>expat 306</p> <p>Lark 306</p> <p>Viewing with XML Browsers 307</p> <p>Amaya 307</p> <p>Internet Explorer 6 307</p> <p>Mozilla 308</p> <p>Firefox 1.0 308</p> <p>Opera 308</p> <p>Using XML Parsers and Engines 309</p> <p>XML C Library for Gnome 309</p> <p>Java XML Pack 310</p> <p>Xerces 310</p> <p>Employing Conversion Tools 311</p> <p>HTML Tidy 311</p> <p>Extensible Programming Script (XPS) 311</p> <p>The Ultimate XML Grab Bag and Goodie Box 312</p> <p>Microsoft does XML, too! 312</p> <p>webMethods automates XML excellence 312</p> <p><b>Chapter 20: Ten Top XML Applications 313</b></p> <p>Xhtml = Xml + Html 314</p> <p>XML Style Is a Matter of Application 314</p> <p>Wireless Markup Language (WML) 314</p> <p>DocBook, Anyone? 315</p> <p>Mathematical Markup Language (MathML) 315</p> <p>Scalable Vector Graphics (SVG) 316</p> <p>Resource Description Framework (RDF) 316</p> <p>Synchronized Multimedia Integration Language (SMIL) 317</p> <p>Servin’ Up Web Services 317</p> <p>XQuery 318</p> <p>Create XML Applications with Zope 319</p> <p><b>Chapter 21: Ten Ultimate XML Resources 321</b></p> <p>XML’s Many and Marvelous Specs 321</p> <p>An XML Nonpareil 322</p> <p>XML in the Mail 323</p> <p>Excellent XML Examples at zvon.org 323</p> <p>XML News and Information 323</p> <p>XML Training Options 324</p> <p>Building a Bodacious XML Bookshelf 325</p> <p>Studying XML for Certification 326</p> <p>Serious Searches Lead to Success 327</p> <p>Glossary 329</p> <p>Index 347</p>
<b>Lucinda Dykes</b> started her career in a high-tech area of medicine, but left medicine to pursue her interests in technology and the Web. She has been writing code and developing Web sites since 1994, and also teaches and develops online courses — including the JavaScript courses for the International Webmasters Association/HTML Writers’ Guild at www.eclasses.org.<br /> Lucinda has authored, co-authored, edited, and been a contributing author to numerous computer books; the most recent include <i>Dreamweaver MX 2004 Savvy</i> (Sybex), <i>XML for Dummies</i> (3rd Edition, Wiley), <i>Dreamweaver MX Fireworks MX Savvy</i> (Sybex), <i>XML Schemas</i> (Sybex), and <i>Mastering XHTML</i> (Sybex). When she can manage to move herself away from her keyboard, other interests include holographic technologies, science fiction, and Bollywood movies. <p><b>Ed Tittel</b> is a 23-year veteran of the computing industry. After spending his first seven years in harness writing code, Ed switched to the softer side of the business as a trainer and talking head. A freelance writer since 1986, Ed has written hundreds of magazine and Web articles — and worked on over 100 computer books, including numerous <i>For Dummies</i> titles on topics that include several Windows versions, NetWare, HTML, XHTML, and XML.<br /> Ed is also Technology Editor for <i>Certification Magazine</i>, writes for numerous TechTarget Web sites, and writes a twice-monthly newsletter, “Must Know News,” for CramSession.com. In his spare time, Ed likes to shoot pool, cook, and spend time with his wife Dina and his son Gregory. He also likes to explore the world away from the keyboard with his trusty Labrador retriever, Blackie. Ed can be contacted at etittel@yahoo.com.</p>
See how XML works for business needs and RSS feeds <p>Create consistency on the Web, or tag your data for different purposes</p> <p>Tag — XML is it! XML tags let you share your format as well as your data, and this handy guide will show you how. You'll soon be using this markup language to create everything from Web sites to business forms, discovering schemas and DOCTYPES, wandering the Xpath, teaming up XML with Office 2003, and more.</p> <p>Discover how to</p> <ul> <li>Make information portable</li> <li>Use XML with Word 2003</li> <li>Store different types of data</li> <li>Convert HTML documents to XHTML</li> <li>Add CSS to XML</li> <li>Understand and use DTDs</li> </ul>

Diese Produkte könnten Sie auch interessieren:

Domain Architectures
Domain Architectures
von: Daniel J. Duffy
PDF ebook
31,99 €