Save 40% on books and eBooks + 70% on videos now through May 31*—use code PROGRAM. Shop now.
With the help of XML and Java from scratch, you will build a Web site and application for ChaseWeb Furniture-a fictitious catalog furniture company. All of the information on products, prices, vendors, and so on, is rendered in XML. You'll learn how to display products on the company Web site, take orders, produce a paper catalog, and communicate with the external databases of vendors using XML. The from scratch format is designed to teach novice programmers the hows and whys of programming in the context of creating a functioning application.
1. Vendor Pages: Styling XML with Cascading Style Sheets.
Walking Before We Run: HTML and XHTML. Controlling Presentation: Cascading Style Sheets. Delving Deeper into CSS2.
Color. Background. Border. Positioning Elements. Text Properties. List Item Properties. Tables. Display and Inheritance. Inheritance.
Converting Our Content to XML.
Our XML Structure.
The Two Faces of XSL: XSL Transformations and XSL Formatting Objects. Getting Ready.
Installing MSXML3. Testing the Installation. What We're Shooting For. Our XML Source File.
Trees: The Basic Structure of XML.
Applying the Structure to XSL.
Well-Formedness. Building the Style Sheet.
Associating the Style Sheet with the XML Document.
Templates. Getting Specific-Using XPath. Looping and Sorting.
Adding Elements and Attributes. Conditionals.
Introducing Java. Installing the Java 2 Software Development Kit.
Locating the Java 2 SDK. Installation.
Installing the Xerces-J Parser.
Installing Xerces-J. Setting the CLASSPATH. Testing the Installation.
Well-Formed Versus Valid Documents.
To DTD or Not to DTD.
Document Type Definitions.
Internal DTD Subsets. Attribute Definitions. Mixed Content. DTD Syntax Review. The First Limitation: Datatypes.
Adding the Rest of Our Vendors.
The Second Limitation: Keys. The Third Limitation: Same Name, Different Element.
Datatypes. Features Still to Come.
XSL Processors. Xalan.
Installing Xalan. Testing the Installation.
Converting a File from the Command Line.
Input and Output Files. Processing the Document.
Advanced XSLT: Includes and Imports.
Diving Right In: Hello World! Writing HelloWorld. Compiling HelloWorld. Executing HelloWorld. What It All Means. Inheritance. Looking at HelloWorld.
Reading a File from a Java Application.
Declaring Variables. Displaying the Contents of a File. Exceptions.
Transforming an XML File from Within a Java Program.
Creating the Style Sheet.
Advanced XSLT: Parameters. Our First DOM: Stepping Through Our XML. Automating Further: Adding Next and Previous Links. Adding a Web Server to the Mix. Installing and Configuring Tomcat.
Completing the Installation. Testing the Installation.
The First Servlet. Extracting Request Information.
Getting It Together.
What Is JDOM? Installing JDOM.
Installing JDOM. Setting the CLASSPATH. Running the Samples.
Developing an Algorithm.
The Overall Algorithm.
Creating the Shopping Cart-AddToOrder.java.
Adding post to the Servlet.
Manipulating an XSL Style Sheet. Next Steps.
Manipulating In-Memory Documents.
Creating the New Document. Creating DOM Objects.
The Structure of a DOM Document.
Adding Nodes to a Document. Serializing the Document.
Adding Data. Adding the Products to the Document. Cleaning Up.
Adding Namespaces. Retrieving Namespace Information. Creating the Review Page. Working with the Results of the Transformation. Working with Our Temporary Document. The Final Style Sheet. Collecting Payment Information. Accepting Payment Information. Next Steps.
Downloading the GMD-IPSI XQL Engine. Creating the Index File. Creating the Search Page. The Search Results Page. Performing the Search.
Enhancing the Search.
Connecting to the Database: JDBC, ODBC, and SQL. Creating the Inventory Database.
Creating the ODBC Connection. How We Connect to a Database /li>.
Creating the Initial Inventory.
Introduction to SAX: Adjusting Inventory. Using SAX to Parse the File. Updating the Database. Retrieving Information from the Database: Backorders. Completing the Circle. Next Steps.
Request Headers. Resource Bundles.
Media. Mobile Phones.
Downloading the Simulator. The WML Page.
Adapting a Servlet for Wireless Devices. The Simple Object Access Protocol (SOAP).
How SOAP Messages Are Passed. HTTP Requests and Responses. Taking It a Step Further.
Downloading, Installing, and Testing FOP. The Structure of a Formatting Objects File.
Where We Go from Here. Getting More Information.
More Information on This Book.
The Last Word.