Xsl:Variable

Total Page:16

File Type:pdf, Size:1020Kb

Xsl:Variable 01_106754 ffirs.qxp 2/9/07 6:13 PM Page iii Beginning Ajax Chris Ullman Lucinda Dykes 01_106754 ffirs.qxp 2/9/07 6:13 PM Page ii 01_106754 ffirs.qxp 2/9/07 6:13 PM Page i Beginning Ajax 01_106754 ffirs.qxp 2/9/07 6:13 PM Page ii 01_106754 ffirs.qxp 2/9/07 6:13 PM Page iii Beginning Ajax Chris Ullman Lucinda Dykes 01_106754 ffirs.qxp 2/9/07 6:13 PM Page iv Beginning Ajax Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2007 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-0-470-10675-4 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 Library of Congress Cataloging-in-Publication data is available from the publisher. No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sec- tions 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Pub- lisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permis- sion should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at http://www.wiley.com/go/permissions. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HERE- FROM. THE FACT THAT AN ORGANIZATION OR WEB SITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATION OR WEB SITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEB SITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAP- PEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ. For general information on our other products and services please contact our Customer Care Department within the United States at (800) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002. Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. 01_106754 ffirs.qxp 2/9/07 6:13 PM Page v About the Authors Chris Ullman is a freelance Web developer and technical author who has spent many years working with ASP/ASP.NET. Coming from a computer science background, he started initially as a UNIX/Linux guru, who gravitated toward Microsoft technologies during the summer of ASP (1997). He cut his teeth on Wrox Press ASP guides, and since then he has written and contributed to more than 25 books, most notably as lead author for Wrox’s bestselling Beginning ASP/ASP.NET 1.x series. He has contributed chapters to books on PHP, ColdFusion, JavaScript, Web Services, C#, XML, and other Internet-related technologies. After he left Wrox as a full-time employee in August 2001, he branched out into VB.NET/C# programming and ASP.NET development, and he started his own business, CUASP Consulting Ltd, in April 2003. He maintains a variety of Web sites from http://www.cuasp.co.co.uk (his “work” site) to http://www.atomicwise.com (a selection of his writings on music and art). He now divides his time between his family and composing electronic sounds for his music project, Open E. Lucinda Dykes is a freelance Web developer, teacher, and technical author who has been writing code and developing Web sites since 1994. She 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 involved in client-side devel- opment with JavaScript for many years through her company, Zero G Web, and teaches JavaScript courses online for an international group of students at eclasses.org. She has also authored numerous technical books about XML, XHTML, and Web application development with Dreamweaver. 01_106754 ffirs.qxp 2/9/07 6:13 PM Page vi 01_106754 ffirs.qxp 2/9/07 6:13 PM Page vii Credits Senior Acquisitions Editor Graphics and Production Specialists Jim Minatel Jennifer Mayberry Alicia B. South Development Editor Kevin Shafer Quality Control Technicians Laura Albert Technical Editors John Greenough Alexei Gorkov Melanie Hoffman Sam Judson Jessica Kramer Todd Meister Matthew Carl Tyson Project Coordinator Spike Xavier Jennifer Theriot Production Editor Proofreading and Indexing Rachel Meyers Aptara Copy Editor Anniversary Logo Design Nancy Kruse Hannigan Richard Pacifico Editorial Manager Mary Beth Wakefield Production Manager Tim Tate Vice President and Executive Group Publisher Richard Swadley Vice President and Executive Publisher Joseph B. Wikert 01_106754 ffirs.qxp 2/9/07 6:13 PM Page viii All my love to my wife, Kate, and the boys. —Chris Ullman With love and thanks to Wali for putting up with being married to a writer; to my mother, Doris Dykes, for instilling a lifelong love of reading and books; and to all the Web pioneers and innovators who shared their knowledge with the rest of us. —Lucinda Dykes viii 01_106754 ffirs.qxp 2/9/07 6:13 PM Page ix Acknowledgments Thanks to my fellow author, Lucinda, for being available for queries and comments. Thanks to Kevin Shafer for his tremendously measured and consistent input on my text. Thanks to Alexei Gorkov for his excellent and incisive input on the chapters and code. And thanks to Jim Minatel for being there to field my numerous requests. —Chris Ullman Thanks to my fellow author Chris for everything I’ve learned about server-side development from him. Thanks to Kevin Shafer for tolerating all the quirks of working with two authors long distance. Thanks to Alexei Gorkov for an outstanding technical review and suggestions about the code. And thanks to Jim Minatel for always being there to answer our questions, for providing excellent suggestions, and for giv- ing me the opportunity to be involved in this project. —Lucinda Dykes 01_106754 ffirs.qxp 2/9/07 6:13 PM Page x 02_106754 ftoc.qxp 2/9/07 6:14 PM Page xi Contents Introduction xxi Chapter 1: Introducing Ajax 1 What Is Ajax? 2 Ajax in Action 3 flickr 3 Basecamp 4 Amazon (A9.com) 5 Google Suggest and Google Maps 6 Other Sites 7 Bad Examples 8 Ajax: The Acronym 9 XHTML and CSS 9 The Document Object Model (DOM) 10 JavaScript 11 XML, XSLT, and XPath 12 The XMLHttpRequest Object 14 Server-Side Technologies 15 The Ajax Application Model 16 Why Should I Use Ajax? 17 Partial Page Updating 17 Invisible Data Retrieval 18 Constant Updating 18 Smooth Interfaces 18 Simplicity and Rich Functionality 18 Drag and Drop 18 When Not to Use Ajax 18 Poor Responsiveness 19 Breaks the Back Button on Your Browser 19 Breaking Bookmarks and Blocking Search Engine Indexes 19 Strain on the Browser 19 Who Can/Can’t Use Ajax? 20 Create Your Own Example 20 Summary 29 Exercises 30 02_106754 ftoc.qxp 2/9/07 6:14 PM Page xii Contents Chapter 2: JavaScript Refresher 31 Core JavaScript 32 Syntax 32 Variables 32 Primitive Datatypes 33 Reference Datatypes 33 Operators 34 Assignment Operator 34 Arithmetic Operators 34 Comparison Operators 35 Logical Operators 35 Increment and Decrement Operators 36 Statements 37 Conditional Statements 37 Loops 38 Functions 40 Object-Oriented JavaScript 41 Built-in Objects 41 Browser Objects 42 User-Defined Objects 43 Constructors 43 Prototypes 44 Destroying Objects 45 The Document Object Model 47 The Document as a Family Tree 48 The Document as a Node Tree 48 DOM Methods for Accessing Objects 49 getElementById 49 getElementsByTagName 50 Creating Nodes 51 The innerHTML Alternative 53 JavaScript and Events 54 Event Models 54 Event Registration 55 The Internet Explorer Event Registration Model 56 The W3C DOM Event Registration Model 56 Event Objects 57 Summary 60 Exercises 61 xii 02_106754 ftoc.qxp 2/9/07 6:14 PM Page xiii Contents Chapter 3: Ajax and Server-Side Technologies 63 Ajax and the Server-Side Technologies 64 Forms and HTML Controls 64 The Forms Model of Submission 64 The Ajax/JavaScript Model of Submission 65 From the Server Side Onward 66 Submitting Data to the Server 67 The Server Receives the Request 67 Writing the HTTP Response 68 The XMLHttpRequest Object 69 The Callback Function 69 The responseText Property 70 The responseXML
Recommended publications
  • SMIL) Boston Specification W3C Working Draft 3-August-1999
    next contents Synchronized Multimedia Integration Language (SMIL) Boston Specification W3C Working Draft 3-August-1999 This version: http://www.w3.org/1999/08/WD-smil-boston-19990803 Latest version: http://www.w3.org/TR/smil-boston Previous version: http://www.w3.org/AudioVideo/Group/smil-boston-19990723 (W3C members only) Editors: Jeff Ayars (RealNetworks), Aaron Cohen (Intel), Ken Day (Macromedia), Erik Hodge (RealNetworks), Philipp Hoschka (W3C), Rob Lanphier (RealNetworks), Nabil Layaïda (INRIA), Jacco van Ossenbruggen (CWI), Lloyd Rutledge (CWI), Bridie Saccocio (RealNetworks), Patrick Schmitz (Microsoft), Warner ten Kate (Philips), Ted Wugofski (Gateway), Jin Yu (Compaq) Copyright © 1999 W3C ® ( MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Abstract This document specifies the "Boston" version of the Synchronized Multimedia Integration Language (SMIL, pronounced "smile"). SMIL Boston has the following two design goals: ● Define a simple XML-based language that allows authors to write interactive multimedia presentations. Using SMIL Boston, an author can describe the temporal behavior of a multimedia presentation, associate hyperlinks with media objects and describe the layout of the presentation on a screen. ● Allow reusing of SMIL syntax and semantics in other XML-based languages, in particular those who need to represent timing and synchronization. For example, SMIL Boston components should be used for integrating timing into XHTML. Status of this document This section describes the status of this document at the time of its publication. Other documents may supersede this document. The latest status of this document series is maintained at the W3C. This document is the first working draft of the specification for the next version of SMIL code-named "Boston".
    [Show full text]
  • Stylesheet Translations of SVG to VML
    Stylesheet Translations of SVG to VML A Master's Project presented to The Faculty of the Department of Computer Science San Jose State University In Partial Fulfillment of the Requirements for the Degree of Master of Science Julie Nabong Advisor: Dr. Chris Pollett May 2004 Abstract The most common graphics formats on the Web today are JPEG and GIF. In addition to these formats, two XML-based graphic types are available as open standards: SVG and VML. SVG and VML are vector graphic formats. These formats offer benefits such as fast Web download time, zoomable images, and searchable texts. Because these vector graphics are scalable, these images can be viewed in different screen sizes, such as PC displays and handheld devices. SVG and VML implementations are gaining popularity in Internet cartography and zoomable charts. SVG images can be viewed by downloading a plug-in; whereas, VML images are rendered in Microsoft's Internet Explorer browser versions 5.0 and higher. Although SVG may be considered a more mature format than VML, it is unlikely it will be supported natively by Microsoft anytime soon. In this master's project, SVG images will be transformed into VML images contained in an HTML document that can be viewed without a plug-in. SVG images will be manipulated through the Document Object Model API and transformed into VML images using JavaScript, XSLT, and XPath. JavaScript will play an important role in handling functionalities not present in XSLT. This project will address the issue of gradient discrepancies between the two formats, and try to get the speed of the translation as close to that of the plug-in based solution as possible.
    [Show full text]
  • XML: Looking at the Forest Instead of the Trees Guy Lapalme Professor Département D©Informatique Et De Recherche Opérationnelle Université De Montréal
    XML: Looking at the Forest Instead of the Trees Guy Lapalme Professor Département d©informatique et de recherche opérationnelle Université de Montréal C.P. 6128, Succ. Centre-Ville Montréal, Québec Canada H3C 3J7 [email protected] http://www.iro.umontreal.ca/~lapalme/ForestInsteadOfTheTrees/ Publication date April 14, 2019 XML to PDF by RenderX XEP XSL-FO Formatter, visit us at http://www.renderx.com/ XML: Looking at the Forest Instead of the Trees Guy Lapalme Professor Département d©informatique et de recherche opérationnelle Université de Montréal C.P. 6128, Succ. Centre-Ville Montréal, Québec Canada H3C 3J7 [email protected] http://www.iro.umontreal.ca/~lapalme/ForestInsteadOfTheTrees/ Publication date April 14, 2019 Abstract This tutorial gives a high-level overview of the main principles underlying some XML technologies: DTD, XML Schema, RELAX NG, Schematron, XPath, XSL stylesheets, Formatting Objects, DOM, SAX and StAX models of processing. They are presented from the point of view of the computer scientist, without the hype too often associated with them. We do not give a detailed description but we focus on the relations between the main ideas of XML and other computer language technologies. A single compact pretty-print example is used throughout the text to illustrate the processing of an XML structure with XML technologies or with Java programs. We also show how to create an XML document by programming in Java, in Ruby, in Python, in PHP, in E4X (Ecmascript for XML) and in Swift. The source code of the example XML ®les and the programs are available either at the companion web site of this document or by clicking on the ®le name within brackets at the start of the caption of each example.
    [Show full text]
  • Spreadsheet-Based Complex Data Transformation
    Spreadsheet-based complex data transformation Hung Thanh Vu Dissertation submitted in fulfilment of the requirements for the degree of Doctor of Philosophy School of Computer Science and Engineering University of New South Wales Sydney, NSW 2052, Australia March 2011 Supervisor: Prof. Boualem Benatallah i Acknowledgements I am very grateful to Professor Boualem for his exceptional unconditional support and limitless patience. He was the first person who taught me how to do research; how to write and present a complex research problem. He has always been there for me when I have any difficulties in research. He is one of the best supervisors I have ever worked with. Without his support, this thesis would never be completed. My sincere thanks go to Dr Regis Saint-Paul for his fruitful collaborations and providing me invaluable research skills. I also wish to express my gratitude to the members of the SOC group, who spent a lot of time discussing with me on the research issues and giving me helpful advice. I would like to thank Dr Paolo Papotti for insightful discussions on data exchange as well as mapping tools Clio, Clip, and +Spicy; Assisstant Professor Christopher Scaffidi for answering my questions on Topes; Associate Professor Wang-Chiew Tan and Dr Bogdan Alexe for helping me understand STBenchmark; Dr Wei Wang for helpful discussions on similarity join and its related algorithms; and some members of XQuery WG and XSLT WG including Daniela Florescu, Jerome Simeon, and Michael Kay for giving me advice on the expressiveness and new updates of XSLT and XQuery. Last but not least, I am forever in debt to my parents.
    [Show full text]
  • Webwatch Final Report
    British Library Research and Innovation Report 146 WebWatching UK Web Communities: Final Report For The WebWatch Project Brian Kelly and Ian Peacock British Library Research and Innovation Centre 1999 Abstract This document is the final report for the WebWatch project. The aim of the project was to develop and use robot software for analysing and profiling Web sites within various UK communities and to report on the findings. This document reviews the original bid, gives a background to robot software, describes the robot software used by the WebWatch project, and summaries the conclusions gained from the WebWatch trawls. A list of recommendations for further work in this area is given. The appendices include a number of the reports which have been produced which describe the main trawls carried out by the project. Author(s) Brian Kelly and Ian Peacock, UKOLN (UK Office for Library and Information Networking). Brian Kelly is UK Web Focus at UKOLN, the University of Bath. Brian managed the WebWatch project. Ian Peacock is WebWatch Computer Officer at UKOLN, the University of Bath. Ian was responsible for software development and analysis and producing reports. Disclaimer The opinions expressed in this report are those of the authors and not necessarily those of the British Library. Grant Number RIC/G/383 Availability of this Report British Library Research and Innovation Reports are published by the British Library Research and Innovation Centre and may be purchased as photocopies or microfiche from the British Thesis Service, British Library Document Supply Centre, Boston Spa, Wetherby, West Yorkshire LS23 7BQ, UK. In addition this report is freely available on the World Wide Web at the address <URL: http://www.ukoln.ac.uk/web-focus/webwatch/reports/final/>.
    [Show full text]
  • Dynamic Web Forms Professional Projects
    Dynamic Web Forms Professional Projects by Dan Ransom ISBN: 1931841136 Premier Press © 2002 (755 pages) A step-by-step guide to help you learn lively Web form development by means of JavaScript, PHP, MySQL, Apache, and more. Table of Contents Dynamic Web Forms Professional Projects Introduction Part I - Dynamic Web Forms Overview Chapter 1 - Introduction to Dynamic Web Forms Chapter 2 - Dynamic Web Form Concepts and Considerations Chapter 3 - HTML Forms Chapter 4 - JavaScript and Web Forms Chapter 5 - Server-Side Scripting and Relational Databases Chapter 6 - Modular Interface Design Part II - Project 1: Creating Membership Forms Chapter 7 - Project 1 Preparation: Designing for Modularization Chapter 8 - Creating the Forms Chapter 9 - Completing the Membership Interface Part III - Project 2: Creating Catalog Forms Chapter 10 - User Interface Design Chapter 11 - Designing a User Interface Chapter 12 - Creating the Online Catalog Interface Chapter 13 - Completing the Catalog Interface Part IV - Project 3: Creating Online Information Systems Chapter 14 - Functional Design Chapter 15 - Designing a Functional Interface Chapter 16 - Creating the Online Information System Itself Chapter 17 - Completing the Information System Interface Part V - Beyond the Lab Chapter 18 - XML and XForms Chapter 19 - Embedded Web Form Technologies Part VI - Appendices Appendix A - HTML Form Elements Reference Appendix B - Recommended Naming Conventions Appendix C - Resources for Web Forms Index List of Figures List of Tables List of Sidebars Dynamic Web Forms Professional Projects Dan Ransom © 2002 by Premier Press, Inc. All rights reserved. No part of this book may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system without written permission from Premier Press, except for the inclusion of brief quotations in a review.
    [Show full text]
  • Beginning XSLT for Humanists
    Beginning&XSLT&for&Humanists& April&18920,&2013& Beginning XSLT for Humanists SOUTHEASTERN LOUISIANA UNIVERSITY APRIL 18-20 http://idhmc.tamu.edu/xslt4u Introduction ! Matthew Christy ! [email protected] ! Lead Software Applications Developer ! Initiative for Digital Humanities, Media, and Culture (IDHMC) – Texas A&M University " We are available for help and consultations with XSLT work " XSLT workshops " Visualization Lab " Contact Director Laura Mandel ([email protected]) ! Class introductions ! Name & Department ! Current / planned projects SELU - Beginning XSLT - XSLT April 18-20, 2013 1& Beginning&XSLT&for&Humanists& April&18920,&2013& ! Day 1 ! HTML Outline ! CSS Day 1 ! Oxygen Editor Day 2 ! XML Day 3 SELU - Beginning XSLT - XSLT April 18-20, 2013 ! Day 2 ! XSLT • What is XSLT? Outline • Tree Structure • What is XSLT for? Day 1 • XPath Exercises • Versions • Flow Control Day 2 • XSLT is XML • Output Control • The Identity Day 3 • Whitespace Template • Variables & • Applying XSLT to Parameters XML • Sort • Basic Elements • Planning • Context • XSLT Exercises • XPath SELU - Beginning XSLT - XSLT April 18-20, 2013 2& Beginning&XSLT&for&Humanists& April&18920,&2013& ! Day 3 ! TEI Outline " What is TEI? Day 1 " What is TEI for? Day 2 " Versions " Reference Materials Day 3 " Structure " TEI Stylesheets " Modifying TEI Stylesheets " Exercises SELU - Beginning XSLT - XSLT April 18-20, 2013 Beginning XSLT for Humanists HTML HTML • What is HTML? • Markup • Versions • Flavors • The Good, the Bad, the Ugly SELU - Beginning XSLT - XSLT April 18-20, 2013 3& Beginning&XSLT&for&Humanists& April&18920,&2013& What is HTML? ! Hyper Text Markup Language " Hypertext: text displayed on a computer with references (hyperlinks) to that provide access to other texts.
    [Show full text]
  • Chapter 7 XML.Pptx
    Prof. Dr.-Ing. Stefan Deßloch AG Heterogene Informationssysteme Geb. 36, Raum 329 Tel. 0631/205 3275 [email protected] Chapter 7 - XML XML Origin and Usages n Defined by the WWW Consortium (W3C) n Originally intended as a document markup language, not a database language n Documents have tags giving extra information about sections of the document n For example: n <title> XML </title> n <slide> XML Origin and Usages </slide> n Meta-language: used to define arbitrary XML languages/vocabularies (e.g. XHTML) n Derived from SGML (Standard Generalized Markup Language) n standard for document description n enables document interchange in publishing, office, engineering, … n main idea: separate form from structure n XML is simpler to use than SGML n roughly 20% complexity achieves 80% functionality © Prof.Dr.-Ing. Stefan Deßloch XML Origin and Usages (cont.) n XML documents are to some extent self-describing n Tags represent metadata n Metadata and data are combined in the same document n semi-structured data modeling n Example <bank> <account> <account-number> A-101 </account-number> <branch-name> Downtown </branch-name> <balance> 500 </balance> </account> <depositor> <account-number> A-101 </account-number> <customer-name> Johnson </customer-name> </depositor> </bank> © Prof.Dr.-Ing. Stefan Deßloch Forces Driving XML n Document Processing n Goal: use document in various, evolving systems n structure – content – layout n grammar: markup vocabulary for mixed content n Data Bases and Data Exchange n Goal: data independence n structured, typed data – schema-driven – integrity constraints n Semi-structured Data and Information Integration n Goal: integrate autonomous data sources n data source schema not known in detail – schemata are dynamic n schema might be revealed through analysis only after data processing © Prof.Dr.-Ing.
    [Show full text]
  • Cascading Style Sheets, Javascript Style Sheets, & Javascripted Layers Plus Advanced Javascript 1.2 & 1.3
    DHTML and JavaScript Gilorien Cascading Style Sheets, JavaScript Style Sheets, & JavaScripted Layers plus advanced JavaScript 1.2 & 1.3 Prentice Hall PTR Upper Saddle River, NJ 07458 www.phptr.com Contents Preface xvi Regarding HTML Syntax xviii Regarding JavaScript Syntax xviii Regarding Section Header Capitalization xix About the CD-ROM xx Part I Dynamic HTML Chapter 1 Style Sheets 1 Introduction to Style Sheets 4 1.1) Style Sheets Overview 4 1.2) The Golden Rules for Styles 6 1.3) Cascading Style Sheets & JavaScript Style Sheets 8 Cascading Style Sheets 8 1.4) CSS Syntax Property Chart 11 1.5) CSS & JavaScript Syntax Property Comparison Chart 12 1.6) CSS Layer Properties and <LAYER> Attributes Chart 13 1.7) JavaScript Layer Object Properties Chart 14 1.8) Generic { font-family: } Names Chart 14 1.9) Styles Chart for HTML Elements 15 The <STYLE> Element 16 1.10) Handling Comments in Styles 18 1.11) <STYLE> Element Style 20 Cascading Style Sheet Properties 23 1.12) The { font-size: } Property 23 1.13) The { font-family: } Property 24 1.14) The { font-weight: } Property 25 1.15) The { font-style: } Property 25 1.16) The { line-height: } Property 27 1.17) The { text-decoration: } Property 28 1.18) The { text-transform: } Property 28 1.19) The { text-align: } Property 28 1.20) The { text-indent: } Property 29 1.21) Margins Overview 30 1.22) The { margin: } Property 31 1.23) The { margin-top: } Property 32 1.24) The { margin-right: } Property 32 1.25) The { margin-bottom: } Property 32 1.26) The { margin-left: } Property 32 1.27) Padding
    [Show full text]
  • Ajax : Creating Web Pages with Asynchronous Javascript and XML / Edmond Woychowsky
    00_0132272679_FM.qxd 7/17/06 8:57 AM Page i Ajax 00_0132272679_FM.qxd 7/17/06 8:57 AM Page ii 00_0132272679_FM.qxd 7/17/06 8:57 AM Page iii Ajax Creating Web Pages with Asynchronous JavaScript and XML Edmond Woychowsky Upper Saddle River, NJ • Boston • Indianapolis • San Francisco New York • Toronto • Montreal • London • Munich • Paris • Madrid Cape Town • Sydney • Tokyo • Singapore • Mexico City 00_0132272679_FM.qxd 7/17/06 8:57 AM Page iv 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 the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals. The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for inci- dental or consequential damages in connection with or arising out of the use of the information or programs contained herein. The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include electronic versions and/or custom covers and content particular to your business, training goals, marketing focus, and branding interests. For more information, please contact: U.S. Corporate and Government Sales (800) 382-3419 [email protected] For sales outside the United States, please contact: International Sales [email protected] This Book Is Safari Enabled The Safari‚ Enabled icon on the cover of your favorite technology book means the book is avail- able through Safari Bookshelf.
    [Show full text]
  • XML Web Services, REST-Based JSON Web Services
    DEPARTMENT OF COMPUTER SCIENCE P.G. M.Sc Computer Science III SEMESTER WEB PROGRAMMING SUB.CODE:PCST33 UNIT – I BASICS INTERNET PROTOCOLS, HTML5 Basic Internet Protocols - The World Wide Web - HTTP messages - Web servers and clients - Introduction to HTML5 - Editing HTML5 - W3C HTML validation service - Headings - Linking - Images - Special characters and horizontal rules - Lists - Tables - Forms - Internal linking - Meta elements - New HTML5 Form input types - Input and datalist elements and auto complete attribute - Page structure elements - Introduction to Canvas - Canvas Coordinate System - Rectangles - Drawing Arcs and Circles - Shadows UNIT – II JAVASCRIPT, JQUERY Introduction to JavaScript - Syntax - Variables and data types - JavaScript Control Statements - Operators - Literals - Functions - Objects - Arrays - Built in objects - Event handling - Fundamentals of JQuery - JQuery selectors - JQuery methods to access HTML attributes - Traversing - Manipulators - Events - Effects UNIT – III CSS3, DOM Types of CSS - Conflicting style sheets - Positioning Elements - Element Dimension - Box model and Text Flow - Media types - Media Queries - Drop-Down Menus - Text shadows - Rounded corners - Color - Box Shadows - Introduction to the Document Object Model - DOM History and Levels - Intrinsic Event Handling - Modifying Element Style - The Document Tree - Properties of window - DOM Collections - Using Timer and Dynamic Styles to Create Animated Effects - JavaScript Event Handling - Reviewing the load, mousemove, mouseover, mouseout events - Form processing with focus, blur, submit, reset - Event Bubbling - More Events UNIT – IV XML AND PHP XML documents and vocabularies - XML versions and declarations - XML namespace - Representing data types : DTD, XML schema - XSLT - XPath - XQuery - Introduction to PHP - Converting Between Data Types - Arithmetic Operators - Initializing and Manipulating Arrays - String Comparisons - String Processing with Regular Expressions - Form Processing and Business Logic - Reading from a Database - Using Cookie - Dynamic Content.
    [Show full text]
  • Using XML, XSL, and CSS in a Digital Library
    Using XML, XSLT, and CSS in a Digital Library Timothy W. Cole, William H. Mischo, Robert Ferrer, and Thomas G. Habing Grainger Engineering Library Information Center University of Illinois at Urbana-Champaign Abstract The functionality of formats available for the online representation of text continues to evolve. ASCII and bit-mapped image representations of text objects (e.g., journal articles) have been superceded by more functional representations such as application- specific word processing formats and proprietary and non-proprietary information interchange formats (e.g., Adobe PDF, Microsoft RTF, TeX, SGML). Standards like SGML and now XML, which support the representation of a text as an “ordered hierarchy of content objects,” are arguably the best and most sophisticated models available for representing text objects.1 Ratified as an international standard in 1989, SGML has become a well-established approach for encoding text. However SGML’s complexity and requirements for specialized and expensive tools to implement SGML- based systems have limited its scope as an information interchange standard, particularly in today’s Web-dominated environment. XML, established as a W3 Consortium Recommendation in February 1998, strives to make the best features of SGML more accessible to Web authors and publishers, but the XML specification itself doesn't explicitly deal with the presentation of content, nor does it address document object transformation. These issues must be addressed through the use of CSS and XSLT (both more recent W3 Consortium Recommendations). It is necessary to use these three technologies in concert to create powerful and robust text applications on the Web. This paper describes how XML, XSLT, and CSS can be used in a digital library application.
    [Show full text]