The XML feature is an implementation of the XSLT 2.0, XPath
2.0, and XQuery 1.0 technologies and other enhancements. Use these
samples to demonstrate how to use the XML API to process XML documents
using XSLT 2.0, XPath 2.0, and XQuery 1.0.
Time required to set up and configure these samples
30
minutes
Prerequisites for use
- WebSphere® Application
Server Version 8.0 or Version 8.5
Important: These samples were tested with WebSphere Application Server
Version 8.0 and Version 8.5.
Samples download
To use the samples, download
the XML sample files from a product download site. Complete the following
steps:
- Choose one of the following methods to download the XMLSample.zip file
to a directory on your workstation: FTP or HTTP. You might create the /samples/xml directory
path on your workstation and download the XML sample files to that
directory path.
- From the displayed dialog, specify the target directory to which
to save the compressed file and click OK.
The
XMLSample.zip file
contains sample files in the following directory structure:
/images
/installableApps
/scripts
/src
/style
build.xml
readme.html
Attention: The readme.html file
contains information for installing and running the samples.
Key phrases associated with these samples
- XML
- XSLT
- XPath
- XQuery
- XSLT 2.0
- XPath 2.0
- XQuery 1.0
- Transform, Transformation
Automated installation with Microsoft Windows directories
The
automated XML sample installation script is written in Jython, which
treats the following list of characters or conditions as special.
Therefore, avoid the following characters, if possible, when choosing
a directory path for storing the XML samples.
- \a
- \b
- \f
- \n
- \N
- \r
- \t
- \u
- \U
- \v
- \x
Note: For example, Jython interprets the
\x character
as a hexadecimal in a string and attempts to parse the character as
a hexadecimal value. The
ml characters, as in
\xml,
are not valid hexadecimal values and they would cause an error to
occur; for example:
C:\xml\XMLSamples
- A backslash followed by a sequence of numbers 0 - 7
Samples description
- XML Path Language (XPath) 2.0
- Demonstrates XPath invocation using the XML API, schema awareness,
backwards compatibility, and more
- Extensible Stylesheet Language Transformations (XSLT) 2.0
- Demonstrates XSLT invocation using the XML API, stylesheet functions,
date formatting, grouping, schema awareness, and more
- XML Query Language (XQuery) 1.0
- Demonstrates XQuery invocation using the XML API, FLWOR expressions,
variable and function declarations, operations on types, schema awareness,
and more
- XPath Blog Checker, XSLT Blog Checker, XQuery Blog Checker
- Complex, end-to-end sample
These tools enable you to search
all your Blogger web publishing service blogs for questionable comments.