OReilly XML publishing with axkit jun 2004 ISBN 0596002165

506 57 0
OReilly XML publishing with axkit jun 2004 ISBN 0596002165

Đ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

• • • • • • Table of Contents Index Reviews Reader Reviews Errata Academic XML Publishing with AxKit By Kip Hampton Publisher : O'Reilly Pub Date : June 2004 ISBN : 0-596-00216-5 Pages : 216 XML Publishing with AxKit presents web programmers the knowledge they need to master AxKit The book features a thorough introduction to XSP (extensible Server Pages), which applies the concepts of Server Pages technologies (embedded code, tag libraries, etc) to the XML world, and covers integrating AxKit with other tools such as Template Toolkit, Apache:: Mason, Apache::ASP, and plain CGI It also includes invaluable reference sections on configuration directives, XPathScript, and XSP • • • • • • Table of Contents Index Reviews Reader Reviews Errata Academic XML Publishing with AxKit By Kip Hampton Publisher : O'Reilly Pub Date : June 2004 ISBN : 0-596-00216-5 Pages : 216 Copyright Preface Who Should Read This Book What's Inside Conventions Used in This Book How to Contact Us Using Code Examples Acknowledgments Chapter 1 XML as a Publishing Technology Section 1.1 Exploding a Few Myths About XML Publishing Section 1.2 XML Basics Section 1.3 Publishing XML Content Section 1.4 Introducing AxKit, an XML Application Server for Apache Chapter 2 Installing AxKit Section 2.1 Installation Requirements Section 2.2 Installing the AxKit Core Section 2.4 Basic Server Configuration Section 2.3 Installing AxKit on Win 32 Systems Section 2.5 Testing the Installation Section 2.6 Installation Troubleshooting Chapter 3 Your First XML Web Site Section 3.1 Preparation Section 3.2 Creating the Source XML Documents Section 3.4 Associating the Documents with the Stylesheet Section 3.3 Writing the Stylesheet Section 3.5 A Step Further: Syndicating Content Chapter 4 Points of Style Section 4.1 Adding Transformation Language Modules Section 4.2 Defining Style Processors Section 4.3 Dynamically Choosing Style Transformations Section 4.4 Style Processor Configuration Cheatsheet Chapter 5 Transforming XML Content with XSLT Section 5.1 XSLT Basics Section 5.2 A Brief XSLT Cookbook Chapter 6 Transforming XML Content with XPathScript Section 6.1 XPathScript Basics Section 6.2 The Template Hash: A Closer Look Section 6.3 XPathScript Cookbook Chapter 7 Serving Dynamic XML Content Section 7.1 Introduction to eXtensible Server Pages Section 7.2 Other Dynamic XML Techniques Chapter 8 Extending AxKit Section 8.1 AxKit's Architecture Section 8.2 Custom Plug-ins Section 8.4 Custom Language Modules Section 8.3 Custom Providers Section 8.5 Custom ConfigReaders Section 8.6 Getting More Information Chapter 9 Integrating AxKit with Other Tools Section 9.1 The Template Toolkit Section 9.2 Providing Content via Apache::Filter Appendix A AxKit Configuration Directive Reference Section A.1 AxCacheDir Section A.2 AxNoCache Section A.3 AxDebugLevel Section A.4 AxTraceIntermediate Section A.6 AxStackTrace Section A.8 AxAddPlugin Section A.10 AxTranslateOutput Section A.12 AxExternalEncoding Section A.14 AxResetOutputTransformers Section A.16 AxAddXSPTaglib Section A.18 AxHandleDirs Section A.20 AxMedia Section A.22 AxResetStyleMap Section A.24 AxAddDocTypeProcessor Section A.26 AxAddRootProcessor Section A.28 AxResetProcessors Section A.5 AxDebugTidy Section A.7 AxLogDeclines Section A.9 AxGzipOutput Section A.11 AxOutputCharset Section A.13 AxAddOutputTransformer Section A.15 AxErrorStylesheet Section A.17 AxIgnoreStylePI Section A.19 AxStyle Section A.21 AxAddStyleMap Section A.23 AxAddProcessor Section A.25 AxAddDTDProcessor Section A.27 AxAddURIProcessor Section A.29 Section A.30 Colophon Index Copyright © 2004 O'Reilly Media, Inc 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 XML Publishing with AxKit, the image of tarpans, 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 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 authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein Preface This book introduces Apache AxKit, a mod_perl-based extension to the Apache web server that turns Apache into an XML publishing and application environment Who Should Read This Book This book is intended to be useful to any web developer/designer interested in learning about XML publishing, in general, and the practical aspects of XML publishing, specifically with the Apache AxKit XML application and publishing server While AxKit and its techniques are the obvious focus, many ideas presented can be reused in other XML-based publishing environments If you do not know XML and dread the thought of consuming a pile of esoteric specifications to understand what is being presented, don't worrythis book takes a fiercely pragmatic approach that will teach you only what you need to know to be productive with AxKit A quick scan of XML's basic syntax is probably all the XML knowledge you need to get started Although AxKit is written in Perl, its users need not know Perl at all to use it to its full effect However, developers who do know Perl will find that AxKit's modular design allows them to easily write custom extensions to meet specialized requirements Similarly, AxKit users are not expected to be Apache HTTP server gurus, but those who do know even a bit about how Apache works will find themselves with a valuable head start: Web developers will learn XML publishing techniques through a variety of practical, tested examples Perl programmers will see how they can use XML to build on their existing skills Markup professionals will discover how AxKit combines standard XML processing tools with those unique to the Perl programming language to create a flexible, easy-to-use environment that delivers on XML's promise as a publishing technology What's Inside This book is organized into nine chapters and one appendix Chapter 1, XML as a Publishing TEchnology, puts XML into perspective as a markup language, presents some of the topics commonly associated with XML publishing, and introduces AxKit as an XML application and publishing environment Chapter 2, Installing AxKit, guides you through the process of installing AxKit, including its dependencies and optional modules This chapter also covers platform-specific installation tips, how to navigate AxKit's installed documentation, and where to go for additional help Chapter 3, Your First XML Web Site, guides you through the process of creating and publishing a simple XML-based web site using AxKit Special attention is paid to the basic principles and techniques common to most projects Chapter 4, Points of Style, details AxKit's style processing directives It gives special attention to how to combine various directives to create both simple and complex processing chains, and how to conditionally apply alternate transformations using AxKit's StyleChooser and MediaChooser plug-ins Chapter 5, Transforming XML Content with XSLT, offers a "quickstart" introduction to XSLT 1.0 and how to use it effectively within AxKit A Cookbook-style section offers solutions to common development tasks Chapter 6, Transforming XML Content with XPathScript, introduces AxKit's more Perl-centric alternative to XSLT, XPathScript The focus is on XPathScript's basic syntax and template options for generating and transforming XML content The chapter also contains a Cookbook-style section process( ) processing chains caching examples, three alternate Project Gutenberg properties preferred_media default value and altering preferred_style set by cookie provider API exists( ) 2nd get_dom( ) get_fh( ) get_strref( ) 2nd get_styles( ) 2nd init( ) key( ) 2nd mtime( ) process( ) zip archive stylesheets example providers, custom API defined content data fetchng mechanism [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [K] [L] [M] [N] [O] [P] [R] [S] [T] [V] [W] [X] [Z] RDF Site Summary [See RSS] Really Simple Syndication [See RSS] resuable content RSS (RDF Site Summary or Really Simple Syndication) example document for output stylesheet query string runtime styling directives [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [K] [L] [M] [N] [O] [P] [R] [S] [T] [V] [W] [X] [Z] Sablotron XSLT processor sanctioned AFS (Apache Software Foundation) project SAX (Simple API for XML) Filters Sendmail module, interface to Sergeant, Matt, conceived by SGML (Standard Generalized Markup Language) site-processing diagram (XML to HTML and RSS) skinning site content with named styles Standard Generalized Markup Language (SGML) Style style definitions directive inheritance 2nd how applied and overridden in child directories prepended, not appended order applied processing order, examining style processors configuration cheetsheet conditional directives against original XML source groups of conditional processing directives named style or media blocks processed last prepending style processers going down hierarchy same lexical level evaluation order 2nd defining definitions inherited recursively down directories named processors always last rule runtime styling directives source document or configuration directive driven StyleChooser modules 2nd alternate styles and custom 2nd named blocks processed last selecting between styles style overlap and StyleMap( ) StyleProviderClass( ) styles alternate processing instructions basic configuration options configuration directive or xml-stylesheet processing instruction definitions added after language processor setup definitions in all cases or conditionally handling overlap logical group combinations named styles, reasons for using 2nd persistant processing instructions preferred processing instructions transformations, dynamically choosing xml-stylesheet processing instructions, media attribute stylesheets associating documents with associating language processor with client-side transformations with creating XML-based web site samples define style processor mappings NULL as stylesheet path in XSP paths, resolving relative or qualified preprocessed transformations with processing instructions from original XML document only RSS [See RSS] server-side transformations with templates [See templates, stylesheets] transformation chains-;based HTTP cookie transformation rules transforming XML content with xml-stylesheet processing instructions XPathScript [See XPathScript] XSLT [See XSLT] Swish-e site search/indexing tool, interface to syndicating content [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [K] [L] [M] [N] [O] [P] [R] [S] [T] [V] [W] [X] [Z] tag libraries implementation approaches logicsheet, writing module-based, installing 2nd module-based, writing with TaglibHelper most popular samples Util tag library simple example template toolkit AxKit Language interface for AxKit Language module implementation features generating and transforming XML, suited for generating content home page of syntactical difference from Perl and XML transforming content 2nd templates, stylesheets evoking with name attribute rules xsl:template element basic building block of match attribute pattern expression mode attribute for rules Tip, chosing best grammar (or data) model [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [K] [L] [M] [N] [O] [P] [R] [S] [T] [V] [W] [X] [Z] views, alternatives from same source [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [K] [L] [M] [N] [O] [P] [R] [S] [T] [V] [W] [X] [Z] W3C (World Wide Web Consortium) web publishing history 2nd 3rd web site sample [See XML-based web site sample] Wiki application implemented in XSP World Wide Web Consortium (W3C) [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [K] [L] [M] [N] [O] [P] [R] [S] [T] [V] [W] [X] [Z] XML (Extensible Markup Language) basics core function of does not address exposes meaning of content grammar gap with HTML browsers grammars, chosing best is crucial history of markup, history of navigation with parsers Expat Gnome (libxml2) well-formedness fatal error XML content, dynamically serving simplified, well-defined application grammar XSP [See XSP] XML publishing common fallacies 2nd of content document transformation as heart and soul of client-side dynamic server-side preprocessed 2nd required hosting limitations myths about performance issues for serving dynamic XML content [See XML content, dynamically serving] syndicating content RSS XML source document samples XML-based web site sample creating the stylesheet using XPathScript 2nd using XSLT good directory structure key to maintenance preparation 2nd source XML sample documents well-formedness fatal error what you accomplished 2nd XML-centric implementation of Server Pages model xml-stylesheet processing instructions disregarding persistant, preferred, and alternate title and alternate attributes, using XPath language built-in functions 2nd location paths predicate expressions Relationship axes XPathScript AxKit language module basics accessing document content designed as an alternative to XSLT embedded language is Perl cookbook accesing client request and server data 2nd generating fresh dynamic content importing templates dynamically tokenizing text into elements (up-translation) declarative templates applying 2nd cannot bind XML namspaces expression interpolation 2nd importing template matches on element name declarative transform syntax functions findnodes( ) findnodes_as_string( ) findvalue( ) 2nd reasons to use stylesheets behaves like a Perl script two parts (Perl code block and block of literal output) template hash DocBook XML documents into HTML example 2nd Ịcatch-all templat 2nd subkeys and associated behaviors 2nd testcode key testcode subroutine limitations template rules, can set up and apply transforming XML content with using 2nd XSL-FO processor pdfxmltex XSLT (Extensible Stylesheet Language Transformations) basics conditional Ịif/thenĨ blocks loop constructs parameters and variables stylesheet templates [See templates, stylsheets] XPath language [See XPath language] brief cookbook alternating colors in HTML table rows ỊbreadcrumbĨ navigation bar browser-friendly HMTL delivery 2nd dividing large datasets into pages including external documents 2nd passing markup through untransformed XSLT parameter with POST and GET data functions document( ) 2nd XPath position( ) processors choosing in AxKit Gnome XSLT processor (libxslt) 2nd Sablotron XSLT processor site-processing diagram (XML to HTML and RSS) styesheet example tranforming XML content with using XSP (Extensible Server Pages) ApacheAxKit::Language::XSP AxKit for basics elements 2nd generating content grammar summary (nine elements) most effective use valid XSP document is well-formed XML XSP processor beginning of processing chain content generation free-form Perl code, embedded xsp\:content element optional xsp\:logic elements, things to remember debugging tips 2nd AxDebugLevel directive to maximum (10) AxTraceIntermediate directive introduction to generating content sole concern NULL as stylesheet path in other dynamic HMTL techniques aggregate data URIs 2nd 3rd 4th 5th application content providers 2nd 3rd 4th 5th 6th 7th 8th Perl modules, using in CPAN Sendmail module, interface to Swish-e site search/indexing tool, interface to tag libraries implementation approaches logicsheet, writing module-based, installing 2nd module-based, writing with TaglibHelper most popular samples 2nd Util tag library simple example Wiki application implement in XML-centric implementation of Server Pages model XSPTaglibs( ) [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [K] [L] [M] [N] [O] [P] [R] [S] [T] [V] [W] [X] [Z] zip archive stylesheets example ... Chapter 1 XML as a Publishing Technology Section 1.1 Exploding a Few Myths About XML Publishing Section 1.2 XML Basics Section 1.3 Publishing XML Content Section 1.4 Introducing AxKit, an XML Application Server for Apache... developer/designer interested in learning about XML publishing, in general, and the practical aspects of XML publishing, specifically with the Apache AxKit XML application and publishing server While AxKit and its techniques are the... Chapter 1, XML as a Publishing TEchnology, puts XML into perspective as a markup language, presents some of the topics commonly associated with XML publishing, and introduces AxKit as an XML application and publishing environment

Ngày đăng: 26/03/2019, 17:12

Từ khóa liên quan

Mục lục

  • XML Publishing with AxKit

  • Table of Contents

  • Copyright

  • Preface

    • Who Should Read This Book

    • What's Inside

    • Conventions Used in This Book

    • Using Code Examples

    • How to Contact Us

    • Acknowledgments

    • Chapter 1. XML as a Publishing Technology

      • 1.1 Exploding a Few Myths About XML Publishing

      • 1.2 XML Basics

      • 1.3 Publishing XML Content

      • 1.4 Introducing AxKit, an XML Application Server for Apache

      • Chapter 2. Installing AxKit

        • 2.1 Installation Requirements

        • 2.2 Installing the AxKit Core

        • 2.3 Installing AxKit on Win 32 Systems

        • 2.4 Basic Server Configuration

        • 2.5 Testing the Installation

        • 2.6 Installation Troubleshooting

        • Chapter 3. Your First XML Web Site

          • 3.1 Preparation

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

Tài liệu liên quan