1. Trang chủ
  2. » Công Nghệ Thông Tin

OReilly XML hacks 100 industrial strength tips and tools jul 2004 ISBN 0596007116

1K 52 0

Đ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

Thông tin cơ bản

Định dạng
Số trang 1.038
Dung lượng 6,55 MB

Nội dung

• • • • • • Table of Contents Index Reviews Reader Reviews Errata Academic XML Hacks By Michael Fitzgerald Publisher : O'Reilly Pub Date : July 2004 ISBN : 0-596-00711-6 Pages : 478 This practical, roll-up-your-sleeves guide distills years of ingenious XML hacking into a complete set of tips, tricks, and tools for web developers, system administrators, and programmers who want to leverage the untapped power of XML If you want more than the average XML user to explore and experiment, discover clever shortcuts, and show off just a little (and have fun in the process) this invaluable book is a musthave • • • • • • Table of Contents Index Reviews Reader Reviews Errata Academic XML Hacks By Michael Fitzgerald Publisher : O'Reilly Pub Date : July 2004 ISBN : 0-596-00711-6 Pages : 478 Copyright Credits Author Contributors Preface Why XML Hacks? How This Book Is Organized Conventions Used in This Book How to Contact Us Using Code Examples Got a hack? Acknowledgments Chapter 1 Looking at XML Documents Hacks #1-10 Hack 1 Read an XML Document Hack 2 Display an XML Document in a Web Browser Hack 4 Use Character and Entity References Hack 6 Explore XML Documents in Graphical Editors Hack 8 Test XML Documents Online Hack 3 Apply Style to an XML Document with CSS Hack 5 Examine XML Documents in Text Editors Hack 7 Choose Tools for Creating an XML Vocabulary Hack 9 Test XML Documents from the Command Line Hack 10 Run Java Programs that Process XML Chapter 2 Creating XML Documents Hacks #11-30 Hack 11 Edit XML Documents with Hack 13 Edit XML with Vim Hack 15 Work with XML in Microsoft Excel 2003 Hack 17 Convert Microsoft Office Files, Old or New, to XML Hack 19 Convert Text to XML with Uphill Hack 20 Create Well-Formed XML with Minimal Manual Tagging Using an SGML Parser Hack 21 Create an XML Document from a CSV File Hack 12 Edit XML Documents with Emacs and nXML Hack 14 Edit XML Documents with Microsoft Word 2003 Hack 16 Work with XML in Microsoft Access 2003 Hack 18 Create an XML Document from a Text File with xmlspy Hack 22 Convert an HTML Document to XHTML with HTML Tidy Hack 23 Transform Documents with XQuery Hack 25 Include Text and Documents with Entities Hack 27 Encode XML Documents Hack 29 What's the Diff? Diff XML Documents Hack 24 Execute an XQuery with Saxon Hack 26 Include External Documents with XInclude Hack 28 Explore XLink and XML Hack 30 Look at XML Documents Through the Lens of the XML Information Set Chapter 3 Transforming XML Documents Hacks #31-58 Hack 31 Understand the Anatomy of an XSLT Stylesheet Hack 32 Transform an XML Document with a Command-Line Processor Hack 34 Analyze Nodes with TreeViewer Hack 33 Transform an XML Document Within a Graphical Editor Hack 35 Explore a Document Tree with the xmllint Shell Hack 36 View Documents as Tables Using Generic CSS or XSLT Hack 37 Generate an XSLT Identity Stylesheet with Relaxer Hack 38 Pretty-Print XML Using a Generic Identity Stylesheet and Xalan Hack 40 Convert Attributes to Elements and Elements to Attributes Hack 42 Create and Process SpreadsheetML Hack 44 Transform Your iTunes Library File Hack 46 Generate XML from MySQL Hack 48 Process XML Documents with XSL-FO and FOP Hack 50 Build Results with Literal Result and Instruction Elements Hack 52 Perform Math with XSLT Hack 54 Generate SVG with XSLT Hack 56 Use Lookup Tables with XSLT to Translate FIPS Codes Hack 39 Create a Text File from an XML Document Hack 41 Convert XML to CSV Hack 43 Choose Your Output Format in XSLT Hack 45 Generate Multiple Output Documents with XSLT 2.0 Hack 47 Generate PDF Documents from XML and CSS Hack 49 Process HTML with XSLT Using TagSoup Hack 51 Write Push and Pull Stylesheets Hack 53 Transform XML Documents with grep and sed Hack 55 Dither Scatterplots with XSLT and SVG Hack 57 Grouping in XSLT 1.0 and 2.0 Hack 58 Use EXSLT Extensions Chapter 4 XML Vocabularies Hacks #59-67 Hack 59 Use XML Namespaces in an XML Vocabulary Hack 61 Create and Validate an XHTML 1.0 Document Hack 63 Create a SOAP 1.2 Document Hack 65 Unravel the OpenOffice File Format Hack 60 Create an RDDL Document Hack 62 Create Books, Technical Manuals, and Papers in XML with DocBook Hack 64 Identify Yourself with FOAF Hack 66 Render Graphics with SVG Hack 67 Use XForms in Your XML Documents Chapter 5 Defining XML Vocabularies with Schema Languages Hacks #68-79 Hack 68 Validate an XML Document with a DTD Hack 69 Validate an XML Document with XML Schema Hack 70 Validate Multiple Documents Against an XML Schema at Once Hack 72 Validate an XML Document with RELAX NG Hack 74 Create an XML Schema Document from an Instance or DTD Hack 76 Convert a RELAX NG Schema to XML Schema Hack 78 Use RELAX NG to Generate DTD Customizations Hack 71 Check the Integrity of a W3C Schema Hack 73 Create a DTD from an Instance Hack 75 Create a RELAX NG Schema from an Instance Hack 77 Use RELAX NG and Schematron Together to Validate Business Rules Hack 79 Generate Instances Based on Schemas Chapter 6 RSS and Atom Hacks #80-90 Hack 80 Subscribe to RSS Feeds Hack 81 Create an RSS 0.91 Document Hack 83 Create an RSS 2.0 Document Hack 85 Validate RSS and Atom Documents Hack 87 Syndicate Content with Movable Type Hack 89 Create RSS 0.91 Feeds from Google Hack 82 Create an RSS 1.0 Document Hack 84 Create an Atom Document Hack 86 Create RSS with XML::RSS Hack 88 Post RSS Headlines on Your Site Hack 90 Syndicate a List of Books from Amazon with RSS and ASP Chapter 7 Advanced XML Hacks Hacks #91-100 Hack 91 Pipeline XML with Ant Hack 92 Use Elements Instead of Entities to Avoid the "amp Explosion Problem" Hack 93 Use Cocoon to Create a Well-Formed View of a Web Page, Then Scrape It for Data Hack 94 From Wiki to XML, Through SGML Hack 95 Create Well-Formed XML with JavaScript Hack 96 Inspect and Edit XML Documents with the Document Object Model Hack 98 Process XML with C# Hack 97 Processing XML with SAX Hack 99 Generate Code from XML Hack 100 Create Well-Formed XML with Genx Colophon Index Copyright © 2004 O'Reilly Media, Inc All rights reserved Printed in the United States of America Published by O'Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472 O'Reilly books may be purchased for educational, business, or sales promotional use Online editions are also available for most titles (http://safari.oreilly.com) For more information, contact our corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly Media, Inc The Hacks series designations, XML Hacks, the image of a socket wrench, "Hacks 100 Industrial-Strength Tips and Tools," and related trade dress are trademarks of O'Reilly Media, Inc Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in this book, and O'Reilly Media, Inc was aware of a trademark claim, the designations have been printed in caps or initial caps While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein Small print: The technologies discussed in this publication, the limitations on these technologies that technology and content owners seek to impose, and the laws actually limiting the use of these technologies are constantly changing Thus, some of the hacks described in this publication may not work, may cause unintended harm to systems on which they are used, or may not be consistent with applicable user agreements Your use of these hacks is at your own risk, and O'Reilly Media, Inc disclaims responsibility for any damage or expense resulting from their use In any event, you should take care that your use of these hacks does not violate any applicable laws, including copyright laws Credits Author Contributors Author Michael Fitzgerald is principal of Wy'east Communications (http://www.wyeast.net), a writing, training, and programming consultancy specializing in XML In addition to this book, he is the author of Learning XSLT (O'Reilly), XSL Essentials (Wiley & Sons), and Building B2B Applications with XML: A Resource Guide (Wiley & Sons) Mike is the creator of Ox, an open source Java tool for generating brief, syntax-related documentation at the command line (http://www.wyeast.net/ox.html) He was also a member of the original RELAX NG technical committee at OASIS (2001-2003) A native of Oregon, Mike now lives with his family in Mapleton, Utah You can find his technical blog at http://www.oreillynet.com/weblogs/author/1365 [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [R] [S] [T] [U] [V] [W] [X] [Y] table.css table.html table.xsl TagSoup targets templates Tennison, Jeni text conversion to XML using SGML parsers using Uphill text editors Emacs 2nd VIM vim text files, extracting XML documents from text instruction element text.svg text.xsl tick.c time.css time.dtd 2nd time.html Time.java time.py time.rnc time.rng time.xml time.xsd time.xsl Tobin, Richard tock.c Tolpin, David Tomoharu, Asami Topologi Schematron Validator toSpreadsheetML.xsl Trang RELAX NG schemas, converting to XML Schemas RELAX NG schemas, creating from instances RNC customozation files, converting to RNG Trang conversion tool XML Schema, creating from an instance transform element translate.sed tree viewer, XPath nodes TSaxon tuples type attribute types (Ant) [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [R] [S] [T] [U] [V] [W] [X] [Y] UBL (Universal Business Language) UDDI (Universal Description, Discovery and Integration) unparsed entities Uphill explanation of code main class markup class using [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [R] [S] [T] [U] [V] [W] [X] [Y] valid.xml 2nd 3rd validation of XML documents validity version information in XML documents vim automation using scripts configuration folding ftplugin for indetation XML syntax highlighting Vim text editor .vimrc file Vitiello, Eric [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [R] [S] [T] [U] [V] [W] [X] [Y] W3C RDF (Resource Description Framework) W3C MarkUp Validation Service W3C Schema XML Protocol Working Group Walidator Walsh, Norm Web Services Description Language (WSDL) Web Services Interoperability Organization (WSI) web sites for online XML testing WebLogic Integration well-formedness 2nd Wf.class wf.jar wiki.sgm wikis conversion to XML using SGML description as SGML document type maps to entity references STARTTAG entity references wiki dialects wikis as SGML WikiWikiWeb Windows [See Microsoft] Word 2003 [See Microsoft] WordprocessingML worksheet.xml WSDL (Web Services Description Language) WSI (Web Services Interoperability Organization) wyeast.rss [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [R] [S] [T] [U] [V] [W] [X] [Y] X-Y scatterplots, dithering Xalan pretty printing XML with stylesheets Xalan C++ download site XBRL (Extensible Business Reporting Language) Xerces XForms bind element properties DENG (Desktop Engine) form controls formsPlayer plug-in for IE6 structure working example XForms Institute XForms Model XForms User Interface XHTML conversion from HTML converting to from HTML documents, creating and validating XML conformity XHTML Basic module XInclude (XML Inclusions) XLink (XML Linking Language) XML conversion from wikis using SGML hierarchy predefined entities versions in use XML (Extensible Markup Language) nesting of elements XML declarations XML Diff and Merge Tool XML documents Access 2003, importing data from browsers, displaying in CDATA sections character encoding character references 2nd 3rd comments conversion to C# code using xmlspy conversion to Java code using Relaxer compiling Java files viewing Java source creating nXML, using , using vim, using Word 2003, using CSS, applying styles with CSV files, converting to CSV files, creating from diff tools DOM, inspecting and editing with [See DOM] DTDs, converting to elements encoding declarations entities entity references Excel 2003, editing in Excel spreadsheets ,conversion to extracting data with XQuery graphical editors [See graphical editors] HTML, creating from HTML, processing to with TagSoup Java processors for JavaScript, creation using [See JavaScript] marking up peoples' names Microsoft Office files, conversion to mixed content MySQL data, generating from namespaces node types OpenOffice file format, usage in PDF or PostScript, converting to pretty-printing with stylesheets and Xalan processing instructions Relaxer, generating stylesheets with schemas SGML parsers for converting text standalone declarations structure testing, command line testing, online text editors [See text editors] text files, creating from tools for creating vocabularies transforming with grep and sed xml documents Uphill, text conversion using XML documents validation with DTDs with RELAX NG with XML Schema version information viewing as tables well-formed documents XForms [See XForms] XML Schema documents, creating from XML stylesheet processing instructions XML Information Set (Infoset) XML Linking Language (XLink) XML Object Model (XOM) XML pipelining with Ant Jing task pipelining example XML Protocol Working Group XML Schema complexType element document element global element declarations sequence element validation of multiple documents validation tools xmllint XSD Schema Validator XML Validator (xmlvalid) command line tester XML vocabularies customized subsets, creating with RELAX NG DocBook FOAF namespaces namespace names URIs and OpenOffice file format RDDL documents, creating RSS [See RSS] SOAP data model SVG [See SVG] XForms [See XForms] XHTML documents, creating and validating XML conformity xml-dev mailing list XML::RSS parsing RSS files xmldiff xmledit.vim xmllint 2nd 3rd xmllint command line tester xmlns attribute xmlschema-rddl.html xmlspy 2nd C# code generation from XML instances, generating XML Schema, generating from an instance xmlspy 2004 2nd xmlTagHook cluster xmlvalidate (Ant) xmlwf command line tester XOM (XML Object Model) 2nd XOM JARs xom.jar XPath data model XPath, math operations using XQuery expressions FLWOR Saxon, execution using xRay2 2nd XSD Inference 1.0 XSD Schema Validator XSLT (Extensible Stylesheet Language Templates) apply-templates element built-in templates chooosing output format command-line processors Instant Saxon MSXSL Saxon Xalan copy-of and copy elements dithering SVG scatterplots document elements element-attribute conversions EXSLT extensions date\:date( ), date\:time( ), and math\:lowest( ) exsl\:node-set( ) FIPS codes, translating with lookup tables putting lookup tables in stylesheets graphical xml editors xmlspy xRay2 grouping nodes in output Muenchian method XSLT 1.0 XSLT 2.0 instruction elements literal result elements math operations using output elements pretty printing XML with Xalan push and pull stylesheets Relaxer, generating with structure stylesheets with literal result elements, instruction elements SVG files, generating TagSoup processing utility templates Version 2.0, generating multiple output documents XML documents, viewing as tables XPath node tree viewer xsltproc [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [R] [S] [T] [U] [V] [W] [X] [Y] YesLogic Prince ... O'Reilly logo are registered trademarks of O'Reilly Media, Inc The Hacks series designations, XML Hacks, the image of a socket wrench, "Hacks 100 Industrial- Strength Tips and Tools, " and related trade dress are trademarks of O'Reilly Media, Inc... wholesale news customers, mostly in XML (Yes, so most of them want HTML and get XHTML Deal.) John is a member of the W3C XML Core WG (and the editor of the XML Infoset and XML 1.1 specifications) and the closed Unicore mailing... convert a plain text file to XML with xmlspy, translate CSV to XML, and convert HTML to XHTML with HTML Tidy Chapter 3, Transforming XML Documents Explores many ways that you can use XSLT and other tools to transform XML into CSV, transform an iTunes library

Ngày đăng: 26/03/2019, 16:30