Directory / File Name | Num | Notes |
---|---|---|
examples | ||
build.xml | - | Main Ant build file for all examples |
exampleList.html | - | List of all examples |
README.txt | - | Installation instructions |
chapters | ||
presidents.dtd | 1-2 | DTD for presidents.xml |
presidents.xml | 1-1 | List of presidents |
presidentsToCSV.xslt | - | Converts presidents.xml to CSV format |
chap1 | ||
helloWorld.xhtml | - | XHTML Basics sidebar example |
library.dtd | - | Validation for library.xml |
library.xml | 1-3 | Data for a book collection |
src | ||
chap1 | ||
Book.java | - | Represents a book in a library |
JdomToDom.java | - | One way to convert a JDOM tree to DOM |
Library.java | - | Represents a library |
LibraryDOMCreator.java | 1-4 | XML generation using DOM |
LibraryJDOMCreator.java | 1-5 | XML generation using JDOM |
Publisher.java | - | Represents a publisher |
chap2 | ||
attribSet.xslt | - | Example of <xsl:attribute-set> |
discussionForumHome.xml | 2-1 | Prototype home page |
discussionForumHome.xslt | 2-2 | Prototype home page stylesheet |
library.xml | - | Used with links.xslt |
links.xslt | - | Shows Attribute Value Templates |
schedule.xml | 2-5 | Personal schedule/appointments |
schedule.xslt | 2-6 | Display the schedule as XHTML |
skeleton.xslt | 2-4 | Skeleton XSLT stylesheet |
sorting.xslt | 2-9 | Looping and sorting examples |
xpathExamples.xslt | 2-8 | Example XPath location paths |
chap3 | ||
choose.xslt | 3-2 | Example of <xsl:choose> |
conditional.xslt | 3-1 | <xsl:if> examples |
familyTree.xml | 3-4 | A family tree example |
familyTree.xslt | 3-5 | Stylesheet for familyTree.xml |
identityTransformation.xslt | 3-11 | Identity transformation stylesheet |
includeDemo.xslt | - | Shows how to use <xsl:include> and <xsl:import> |
log.xml | 3-10 | Log file before transformation |
modes.xslt | 3-6 | Using template modes |
namedTemplate.xslt | 3-3 | Calling a named template |
nameFormatting.xslt | 3-7 | String formatting functions |
numberFormatting.xml | 3-8 | Sample data to demonstrate number formatting |
numberFormatting.xslt | 3-9 | Number formatting functions |
pageElements.xslt | - | Used with includeDemo.xslt |
schemaChange.xslt | - | Used with Example 3-10 |
stringFunctions.xml | - | Various XPath string functions |
stringFunctions.xslt | - | Various XPath string functions |
team.xml | - | Used with Example 3-3 |
antdoc | ||
antBuild.xml | - | Sample Ant build file from Ant itself |
antdoc.xslt | 3-14 | XSLT stylesheet to format Ant build files |
tomcatBuild.xml | - | Sample Ant build file from Tomcat |
chap4 | ||
web.xml | - | Deployment descriptor for the chap4 web app |
docroot | ||
index.html | - | Home page for the chap4 web app |
schedule.jsp | 4-2 | Generates a TV schedule using JSP |
schedule.xml | 4-5 | XML for schedule web page |
schedule.xslt | 4-6 | Generates the schedule HTML web page |
src | ||
chap4 | ||
Schedule.java | - | Java class representing the schedule |
ScheduleJDOM.java | 4-4 | Produces a JDOM Document representing a TV schedule |
ScheduleServlet.java | 4-1 | Generates a TV schedule using println() statements |
Show.java | - | Helper class representing an individual TV show |
chap5 | ||
csvToHTMLTable.xslt | 5-9 | Converts a CSV file to an HTML table |
presidents.csv | - | US presidents in CSV format |
simple.xml | - | A simple XML test |
simple.xslt | - | A simple XSLT test |
stylesheetParameter.xml | - | Shows how to pass a parameter from Java |
stylesheetParameter.xslt | - | Shows how to pass a parameter from Java |
images | ||
sample.gif | - | Used with the parameter example |
src | ||
chap5 | ||
JaxpParameter.java | - | Shows how to pass an XSLT parameter using Java |
SimpleJaxp.java | 5-3 | Using JAXP 1.1 |
SimpleSaxon.java | 5-2 | Using SAXON 5.5.1 |
SimpleXalan1.java | 5-1 | Using Xalan 1 |
Streams.java | 5-4 | JAXP StreamSource and StreamResult |
chap6 | ||
web.xml | 6-2 | Deployment descriptor for splash screen web app |
docroot | ||
index.html | - | Home page for the chap6 web app |
src | ||
chap6 | ||
PersonalData.java | 6-6 | A Java data helper class |
PersonalDataCachedServlet.java | 6-10 | Modified version of PersonalDataServlet |
PersonalDataServlet.java | 6-8 | Servlet that displays the two personal data screens |
PersonalDataXML.java | 6-7 | Converts PersonalData into XML using DOM |
SplashScreenServlet.java | 6-1 | Shows a splash screen |
xslt | ||
confirmPersonalData.xslt | 6-5 | Generates the "Confirm Personal Data" page |
editPersonalData.xslt | 6-4 | Generates the "Edit Personal Data" page |
sample.xml | 6-3 | Example XML data |
chap8 | ||
web.xml | 8-3 | Deployment descriptor for the chap8 web app |
dependentobject | ||
Address.java | 8-13 | Sample dependent object |
addressDO.xml | 8-14 | Data representing an address |
dependentObject.xslt | 8-15 | Rudimentary XSLT code generator |
docroot | ||
company.xml | - | Used to test servlet filters |
home.xml | - | Used to test servlet filters |
i18n.html | - | Used to test servlet filters |
index.html | - | Used to test servlet filters |
jobs.xml | - | Used to test servlet filters |
products.xml | - | Used to test servlet filters |
i18n | ||
directory.xml | 8-16 | XML data file |
directory_basic.xslt | 8-17 | XSLT stylesheet logic shared by English and Spanish |
directory_en.xslt | 8-18 | English stylesheet |
directory_es.xslt | 8-19 | Spanish stylesheet |
src | ||
chap8 | ||
LanguageDemo.java | 8-24 | An internationalized servlet |
Mailbox.java | - | Demonstrates session tracking |
MailboxDOMProducer.java | - | Demonstrates session tracking |
MailboxFactory.java | - | Demonstrates session tracking |
MailboxServlet.java | - | Demonstrates session tracking |
MailFolder.java | - | Demonstrates session tracking |
MessageHeader.java | - | Demonstrates session tracking |
TemplateServlet.java | 8-4 | Drives the XSLT transformation |
webinf | ||
xml | ||
company.xml | - | Used to test TemplateServlet |
exampleMailbox.xml | - | Used to test TemplateServlet |
home.xml | 8-1 | Used to test TemplateServlet |
jobs.xml | - | Used to test TemplateServlet |
numbers_chinese.xml | - | Chinese XML data file |
numbers_english.xml | 8-21 | English XML data file |
numbers_spanish.xml | 8-20 | Spanish XML data file |
products.xml | - | Used to test TemplateServlet |
xslt | ||
mailbox.xslt | - | Used to test session tracking |
numbers_chinese.xslt | - | Chinese stylesheet |
numbers_english.xslt | - | English stylesheet |
numbers_spanish.xslt | 8-22 | Spanish stylesheet |
shopping.xslt | - | Used to demonstrate session tracking |
templatePage.xslt | 8-2 | Generates page header and navigation bar |
chap9 | ||
aidan.xml | 9-5 | Simple test to show how JUnit works. |
aidanCondensed.xml | 9-7 | Output from example 9-5 after applying condensePerson.xslt. |
build.xml | 9-4 | Sample Ant buildfile. |
condensed.dtd | 9-8 | A trivial DTD used for unit testing. |
condensePerson.xslt | 9-6 | Transforms an XML file into a more concise format. |
john.xml | - | Another sample XML file used by the unit test. |
johnCondensed.xml | - | A condensed version of john.xml. |
test.properties | - | Configures the unit test. |
src | ||
chap9 | ||
SampleUnitTest.java | 9-9 | An example JUnit test. |
chap10 | ||
web.xml | 10-3 | Deployment descriptor. |
docroot | ||
index.xhtml | - | XHTML home page for movie theater example. |
sample_requests | ||
sample_request_ericsson_R320s.txt | - | Example HTTP request from a phone simulator. |
sample_request_ericsson_R380s.txt | - | Example HTTP request from a phone simulator. |
sample_request_ericsson_R520m.txt | - | Example HTTP request from a phone simulator. |
sample_request_motorola_simulator.txt | - | Example HTTP request from a phone simulator. |
sample_request_nokia_6210.txt | - | Example HTTP request from a phone simulator. |
sample_request_nokia_7110.txt | - | Example HTTP request from a phone simulator. |
sample_request_nokia_blueprint.txt | - | Example HTTP request from a phone simulator. |
sample_request_openwave_4.1.2.txt | - | Example HTTP request from a phone simulator. |
src | ||
chap10 | ||
MovieServlet.java | 10-9 | Servlet that drives the WML example. |
webinf | ||
xml | ||
movies.dtd | 10-4 | DTD for movie theater example. |
movies.xml | 10-5 | Movie theater data. |
xslt | ||
wml | ||
home.xslt | 10-10 | XSLT for the home page. |
showtimes.xslt | 10-12 | Lists showtimes for a particular theater. |
theaters.xslt | 10-11 | Creates a list of theaters in a city. |
xhtml | ||
home.xslt | - | Creates the XHTML version of the home page. |
showtimes.xslt | - | Creates the XHTML version of the showtimes page. |
theaters.xslt | - | Creates the XHTML version of the movie theater page. |
wml_prototypes | ||
cities.wml | 10-6 | WML home page; displays list of cities. |
example_output_cities.wml | - | Sample output from a transformation. |
example_output_showtimes.wml | - | Sample output from a transformation. |
example_output_theaters.wml | - | Sample output from a transformation. |
helloworld.wml | - | A simple WML example. |
stl_theaters.wml | 10-7 | Movie theaters in St. Louis. |
st_charles18.wml | 10-8 | Showtimes for a specific theater. |
common | ||
src | ||
com | ||
oreilly | ||
javaxslt | ||
swingtrans | ||
ErrorListenerModel.java | 9-10 | Swing table model to display JAXP errors. |
SwingTransformer.java | 9-11 | Entry point into the Swing XSLT transformer app. |
TransformerWindow.java | 9-12 | Shows the result of an XSLT transformation. |
XMLOutputPanel.java | 9-13 | Shows XML output in a scrolling text area. |
util | ||
AbstractXMLReader.java | 5-5 | Custom SAX reader |
BufferedHttpResponseWrapper.java | 8-10 | Captures output, used with a response filter |
BufferedServletOutputStream.java | 8-9 | Captures output, used with a response filter |
CSVXMLReader.java | 5-7 | CSV file parser |
DOMUtil.java | - | Misc DOM utilities. |
ResultCache.java | 9-15 | Caches a transformation result. |
SimpleCSVProcessor.java | 5-8 | CSV file parser |
Stopwatch.java | - | Utility class for performance metrics. |
StylesheetCache.java | 5-10 | XSLT stylesheet cache |
StylesheetFilter.java | 8-11 | Servlet filter for XSLT transformations |
discussion | ||
forum.mdb | - | MS Access database for the discussion forum. |
web.xml | 7-39 | Deployment descriptor. |
design | ||
mysql_forum_dump.txt | 7-17 | MySQL database contents. |
docroot | ||
forum.css | 7-1 | CSS file used by all pages on the discussion forum. |
index.html | - | The home page for the forum web app. |
prototype | ||
home.xhtml | 7-2 | Forum home page. |
home.xml | 7-3 | Home page XML data. |
javaprog_jan2001.xhtml | - | - |
postMsg.xhtml | - | - |
postMsg.xml | 7-5 | Prototype XML for posting a message. |
replyToMsg.xhtml | - | - |
viewMonth.xml | 7-4 | Prototype XML to view a month of messages. |
viewMsg.xhtml | 7-6 | Prototype XML for viewing a message. |
viewMsg.xml | - | - |
src | ||
com | ||
oreilly | ||
forum | ||
ForumConfig.java | 7-15 | Constants and configuration information for the app. |
adapter | ||
DataAdapter.java | 7-16 | Abstraction around a database. |
DataException.java | - | - |
domain | ||
BoardSummary.java | - | - |
BoardSummaryImpl.java | - | - |
DateUtil.java | - | - |
DayMonthYear.java | - | - |
Message.java | 7-13 | Java class representing a message. |
MessageImpl.java | - | - |
MessageSummary.java | 7-12 | Java class representing a message summary. |
MessageSummaryImpl.java | - | - |
MessageTree.java | 7-14 | Java class that organizes messages into a tree data structure. |
MonthYear.java | - | - |
fakeimpl | ||
BoardSummaryImpl.java | - | - |
FakeDataAdapter.java | - | - |
jdbcimpl | ||
DBUtil.java | 7-18 | JDBC utility functions. |
JdbcDataAdapter.java | 7-19 | JDBC implementation of the back-end data source. |
servlet | ||
ErrorRenderer.java | 7-28 | Shows error messages. |
ForumServlet.java | 7-25 | The single servlet used in the discussion forum. |
HomeRenderer.java | 7-32 | Renders the home page. |
HomeReqHandler.java | 7-31 | Handles requests on the home page. |
PostMsgRenderer.java | 7-38 | Shows the post message page. |
PostMsgReqHandler.java | 7-37 | Handles a request to post a message. |
Renderer.java | 7-27 | Base class for page renderers. |
ReqHandler.java | 7-26 | Request handler base class. |
ReqHandlerRegistry.java | 7-30 | Locates the appropriate request handler for an inbound request. |
ViewMonthRenderer.java | 7-34 | Displays messages for a given month in a given board. |
ViewMonthReqHandler.java | 7-33 | Handles requests from the view month page. |
ViewMsgRenderer.java | 7-36 | Displays a web page for a message. |
ViewMsgReqHandler.java | 7-35 | Handles requests to view messages. |
XSLTRenderHelper.java | 7-29 | Does the actual XSLT transformations. |
xml | ||
BoardSummaryJDOM.java | 7-23 | Produces XML for the board summary page. |
HomeJDOM.java | 7-20 | Produces XML for the home page. |
PostMessageJDOM.java | 7-24 | Produces XML for posting a new message. |
ViewMessageJDOM.java | 7-22 | Produces XML for a message view. |
ViewMonthJDOM.java | 7-21 | Produces XML for a monthly view. |
xslt | ||
home.xslt | 7-7 | Home page XSLT stylesheet. |
postMsg.xslt | 7-10 | XSLT for the post/reply message page. |
utils.xslt | 7-8 | Reusable utility functions. |
viewMonth.xslt | 7-9 | XSLT for the view month page. |
viewMsg.xslt | - | - |
lib | ||
crimson_1.1.jar | - | Apache's Crimson XML parser |
jaxp_1.1.jar | - | Sun's Java API for XML Processing |
jdom_beta6.jar | - | JDOM |
junit_3.7.jar | - | JUnit |
mm.mysql-2.0.4-bin.jar | - | MySQL JDBC Driver |
README.txt | - | Overview of the distribution. |
servlet_2.3.jar | - | Sun's Servlet API |
xalan_2.1.jar | - | Xalan XSLT processor |
Last updated $Revision: 1.2 $