Flylib.com

Books Software

 
 
 

Copyright

  
Prev don't be afraid of buying books Next

Copyright

A Cataloging-in-Publication Data record for this book can be obtained from the Library of Congress.

Editorial/Production Supervisor: Faye Gemmellaro



Editor in Chief: Mark L. Taub



Editorial Assistant: Noreen Regina



Marketing Manager: Chanda Leary-Coutu



Manufacturing Manager: Alexis R. Heydt-Long



Manufacturing Buyer: Maura Zaldivar



Cover Designer: Dmitry Kirsanov



Cover Design Director: Jerry Votta



Book Interior Design: Dmitry Kirsanov



 2004 Pearson Education, Inc.
Publishing as Prentice Hall Professional Technical Reference
Upper Saddle River, New Jersey 07458

Prentice Hall PTR offers discounts on this book when ordered in quantity for bulk purchases or special sales. For more information, please contact: U.S. Corporate and Government Sales, 18003823419, corpsales@pearsontechgroup.com. For sales outside of the United States, please contact: International Sales, 13175813793, international@pearsontechgroup.com.

Opinions expressed in this book are those of the Author and are not necessarily those of the Publisher or Series Editor. Company and product names mentioned herein are the trademarks or registered trademarks of their respective owners .

Series logo by Dmitry Kirsanov and Charles F. Goldfarb, copyright 2002 Charles F. Goldfarb.

All rights reserved. No part of this book may be reproduced, in any form or by any means, without permission in writing from the publisher.

Printed in the United States of America

First printing

Text printed on recycled paper

Pearson Education LTD.
Pearson Education Australia PTY, Limited
Pearson Education Singapore, Pte. Ltd.
Pearson Education North Asia Ltd.
Pearson Education Canada, Ltd.
Pearson Educacin de Mexico, S.A. de C.V.
Pearson EducationJapan
Pearson Education Malaysia, Ptd. Ltd.

 
  
Amazon
  
Prev don't be afraid of buying books Next

The Charles F. Goldfarb: Definitive XML Series

graphics/serieslogo.gif

Holman



Definitive XSLT and XPath



Walmsley



Definitive XML Schema



Garshol



Definitive XML Application Development



Hocek and Cuddihy



Definitive VoiceXML



Holman



Definitive XSL-FO



Goldfarb and Prescod



Charles F. Goldfarb's XML Handbook Fifth Edition



Goldfarb and Walmsley



XML in Office 2003: Information Sharing with Desktop XML



Kirsanov



XSLT 2.0 Web Development



Walmsley



Definitive XQuery



Titles in this series are produced using XML, SGML, and/or XSL. XSL-FO documents are rendered into PDF by the XEP Rendering Engine from RenderX: www. renderx .com.

About the Series Editor

Charles F. Goldfarb is the father of XML technology. He invented SGML, the Standard Generalized Markup Language on which both XML and HTML are based. You can find him on the Web at: www.xmlbooks.com.

About the Series Logo

The rebus is an ancient literary tradition, dating from 16 th century Picardy, and is especially appropriate to a series involving fine distinctions between markup and text, metadata and data. The logo is a rebus incorporating the series name within a stylized XML comment declaration.

 
  
Amazon
  
Prev don't be afraid of buying books Next

List of figures

1.1

An XSLT transformation, controlled by a stylesheet, converts an XML source of a page into HTML which is then displayed by the browser

11

1.2

A variation of Figure 1.1: Instead of HTML, a combination of presentation-oriented XML and a CSS style sheet renders the page in a browser

12

1.3

XML offline: XSLT transformation is done in the authoring environment, while the web server and web client both deal with HTML pages

20

1.4

XML on the server: XSLT transformation is done on the web server; a client receives an HTML page

22

1.5

XML in the browser: XSLT transformation is done in a web client

25

1.6

A simple dynamic web page: Note that while some of the atomic dynamic values are drawn from the database, others may be calculated by the page's embedded script

30

1.7

A more complex dynamic web page: The program code is removed from the template, and the template is constructed from separate fragments .

31

1.8

Incorporating XML/XSLT into a dynamic web site: "Compile, then transform"

33

1.9

Another way to combine XML/XSLT with a dynamic engine: "Transform, then compile." Composite dynamic values are best avoided in this scenario

37

2.1

The page documents and the master document are fed to the transformation stylesheet that produces HTML pages

50

5.1

The Batik-rasterized version of Example 5.14. The image is magnified to demonstrate anti-aliasing; the actual size is approximately 400 by 60 pixels

244

5.2

Drop shadow added to Figure 5.1 by Imagemagick

245

5.3

The result of transforming the page document from Example 3.1 with the stylesheet from Example 5.21, using Example 3.2 as master document and Example 5.19 as shared library

266

6.1

XEmacs: Editing an XSLT stylesheet with generic XML editing commands

289

6.2

<oXygen/> XML editor: Project view, document source, and an XPath expression

291

6.3

<oXygen/> XML editor: The tree view of an XML document and an XPath expression. The information in the panes at right (the current element's content model, lists of all defined elements and entities) comes from the DTD, which in this case was generated automatically by the program from a sample document

294

6.4

Pollo XML editor: Tree-like view with " frames " representing elements. Lists of allowed element types in the panes at right implement guided editing based on a DTD or an XSDL schema. An XPath expression highlights the first match and lets you scroll the list of all matches

296

6.5

Morphon: Editable CSS-controlled presentation of an XML document. Icon tags let you see what element you are editing, but they can be turned off for a pure word-processor-like interface

298

6.6

X-Smiles: Editing a subset of master document with an XForms interface from Example 6.1

306

6.7

A "legend" XML document using most of the element types defined for the page documents, rendered by Mozilla with the CSS style sheet from Example 6.2

316

6.8

XPath Explorer focuses on one thingevaluating XPath expressions on a documentbut does that really well

334

6.9

An XSLT-process session in XEmacs; from top to bottom: source, stylesheet (both with breakpoints highlighted), messages, debugging console, and output; the sidebar (right) lists breakpoints, execution context, and variables at the current breakpoint

343

6.10

catchXSL!, an XSLT profiler, displays execution timings for each instruction in a stylesheet

345




 
  
Amazon