PART ONE Introduction to XML technology CHAPTER 1 Why XML? 1.1 Background 1.2 XML-a universal data format 1.3 XML business benefits 1.3.1 Information Sharing 1.3.2 XML inside a single application 1.3.3 Content delivery 1.4 Technological benefits of XML 1.4.1 An example of using XML 1.4.2 Major benefits 1.5 XML history 1.6 Real-life uses of XML 1.6.1 SABRE and Wireless Markup Language 1.6.2 Chemical Markup Language CHAPTER 2 XML overview 2.1 XML concepts 2.1.1 XML and SGML 2.1.2 Document validity and well-formedness 2.1.3 Document Type Definition 2.1.4 Namespaces 2.1.5 DTD versus XML Schemas 2.2 XML Linking 2.3 XPath 2.4 XPointer 2.4.1 Types of XPointer locators 2.5 eXtensible Stylesheet Language(XSL) 2.5.1 Cascading Style sheets 2.5.2 XSL=fo:+XSLT 2.5.3 XSL Transformations 2.5.4 Relationship between XSL and XPath 2.5.5 An XML example CHAPTER 3 Processing XML using Java 3.1 XML applications 3.2 SAX 3.2.1 SAX classes and interfaces 3.2.2 SAX example 3.3 DOM 3.3.1 DOM hierarchy 3.3.2 DOM example 3.3.3 DOM Level 2 3.4 SAX or DOM? 3.4.1 SAX advantages and disadvantages 3.4.2 DOM advantages and disadvantages PART TWO Applying XML technology in IBM WebSphere CHAPTER 4 Introduction to IBM WebSphere Application Server V3 4.1 XML for Java Parser 4.2 LotusXSL 4.3 DTD Catalogs CHAPTER 5 XML Parser for Java 5.1 How to parse an XML document using DOM 5.2 How to create an XML document using DOM 5.3 Reading and querying DTD information 5.4 Using namespaces CHAPTER 6 LotusXSL 6.1 So,what is an XSLT processor? 6.2 XSLT basics 6.2.1 Accessing attributes 6.2.2 Conditional processing 6.2.3 Repetition 6.2.4 Creating attributes and elements 6.3 LotusXSL API 6.3.1 Integrating a parser with the XSL processor 6.3.2 DefaultApplyXSL 6.3.3 Configuring DefaultApplyXSL 6.3.4 Running DefaultApplyXSL CHAPTER 7 WebSphere and XML approaches 7.1 WebSphere programming model 7.1.1 Servlets 7.1.2 Java Server Pages 7.1.3 Servlets,JSPs,and JavaBeans 7.2 Generating XML with Websphere Application Server 7.2.1 The println method 7.2.2 The Document Object Model approach 7.2.3 the JSP method 7.2.4 Comparison of methods-generating XML 7.3 Applying XSL to XML with WebSphere Application Server 7.3.1 using XSL within a servlet 7.3.2 Using XSL automatically 7.3.3 XSLT Islands 7.4 Using XSL selectively 7.4.1 Defining an alternative Web application 7.4.2 Applying XSL based on browser type 7.5 Comparison of approaches 7.5.1 Applying XSL 7.5.2 Comparison of XML/XSL and Servlet/JSP PART THREE ITSO XML application CHAPTER 8 XML application scenario 8.1 Application overview 8.2 Database architecture 8.3 Document Type Definition 8.4 Application architecture CHAPTER 9 XML application implementation 9.1 Logon and user profile management 9.1.1 User profile database 9.1.2 User profile registration servlet 9.1.3 Logon servlet 9.1.4 User interfaces 9.2 Alternative-XSLT Islands 9.3 Search engine 9.3.1 Searching for products and adding to order 9.4 Implementation of shopping basket and ordering system 9.4.1 Implementing the shopping basket as a JavaBean 9.4.2 Program Flow 9.4.3 The orderbasket.jsp file 9.4.4 BasketBean implementation 9.4.5 XSL stylesheet implementation-basket.xsl 9.5 Order tracking 9.5.1 Servlet overview 9.5.2 Displaying order reports 9.5.3 Retrieving individual order information 9.5.4 Generating the HTML output 9.6 Supplier CHAPTER 10 Use and implementation of the DatabaseDom bean 10.1 Use,limitations,and approach 10.1.1 The template file 10.1.2 definition of template file elements 10.1.3 Example output 10.1.4 Bean methods 10.1.5 Updating the database 10.2 The implementation of the Databasedom bean 10.2.1 Generating XML from the database 10.2.2 Updating the database from an XML DOM tree 10.2.3 Creating the column to XML mapping CHAPTER 11 Conclusions 11.1 Successes 11.2 Lessons Learned 11.3 Areas for future exploration APPENDIX A WebSphere Installation A.1 Prerequisites A.2 Create a user for WebSphere and DB2 UDB A.3 Install the IBM JDK 1.1.7P A.4 Install IBM HTTP Server 1.3.6 A.5 Install DB2 UDB 6.1 and Fix pack A.5.1 Installing DB2 UDB 6.1 A.5.2 Installing the Fix pack A.6 Test the installation so far A.7 Installing WebSphere Application Server A.8 Testing your installation A.9 Configuring a laptop/mobile machine with a constant IP address A.10 Configuring and testing an Enterprise Bean A.10.1 Setting up a DataSource A.10.2 deploying and installing the Enterprise Bean A.10.3 Summary APPENDIX B ITSO XML Application demo installation B.1 Installing the databases B.2 Configuring WebSphere Application Server 3.0 B.2.1 Updates to Common classes B.2.2 Application definition and DefaultApplyXSL B.2.3 User Profiles B.2.4 The supplier application B.3 Installing the application files B.4 Optional XSLT Island B.5 Running the application