The XML Samples application is written to be used with the XML specifications and other documents. However, the most important function that these samples provide is a place to begin experimenting with the XML API and the supported specifications.
The XML Samples application is not intended for deployment to production servers. It is for development and educational purposes only. All source code is provided as is for you to use, copy, and modify without royalty payment when you develop applications that run with WebSphere® software. You can use the sample code either for your own internal use, for redistribution as part of an application, or in your products.
Shows how to invoke XPath
Shows an example that demonstrates differences between XPath 1.0 and XPath 2.0 as well as how to run existing XPath 1.0 statements under XPath 2.0 in backwards-compatibility mode
Shows how to run schema-aware expressions; shows how to load schema documents, how to validate input documents, and how to declare namespace prefixes
Shows how to invoke XPath using the document function with relative URIs
Shows how to invoke XPath in compiled mode
Shows how to invoke XPath in pre-compiled mode
Shows how to invoke XPath with collation support
Shows how to invoke XSLT
Shows differences between XPath 1.0 and XPath 2.0 and how to run existing XSLT 1.0 stylesheets under a XSLT 2.0 processor in backwards-compatibility mode
Shows how to use the XSLT 2.0 for-each functionality
Shows how to use the capability offered by xsl:for-each-group
Shows how to use XSLT 2.0 regular-expression support to work with data in structured legacy formats within XML strings
Shows how to use XSLT 2.0 date formatting with internationalization
Shows how to use an XSLT 2.0 result-document instruction to write to multiple outputs simultaneously
Shows how to use XSLT 2.0 tunnel parameters to allow values to be set and accessible during stylesheet processing
Shows how to use the XSLT 2.0 stylesheet functions
Shows how to use the XSLT 2.0 initial-template functionality
Shows how to use the XSLT 2.0 template with multiple modes functionality
Shows how to use XSLT 2.0 XHTML support with the XHTML output method
Shows how to use XSLT 2.0 XHTML support with the XHTML output method
Shows how to use XSLT 2.0 character maps functionality
Shows how to use the XSLT 2.0 "as" attribute functionality
Shows how to use the XSLT 2.0 embedded stylesheets functionality
Shows how to run XSLT in compiled mode
Shows how to run XSLT in pre-compiled mode
Shows how to use the XSLT undeclare-prefix parameter when producing XML output that is Version 1.1 or higher
Shows how to use the XSLT next-match functionality
Shows how to use the collection function
Shows how to use the stylesheets and schemas to validate input documents
Shows how to use the stylesheets and schemas to validate input documents
Shows how to use the validation attribute to validate temporary trees
Shows how to use the validation attribute to validate temporary trees
Shows how to use the validation attribute to validate the main output document
Shows how to use the validation attribute to validate the main output document
Shows how to use the stylesheets and schemas to match on element types instead of names
Shows how to use the use-when functionality
Shows how to use the for-each-group functionality with collations
Shows how to declare external functions within a stylesheet
Shows how to invoke simple XQuery FLOWR expressions
Shows how to invoke an XQuery that joins data from multiple documents
Shows how to define and use XQuery functions and variables
Shows how to use the TypeDeclaration functionality
Shows how to run XQuery functions in compiled mode
Shows how to invoke XQuery in pre-compiled mode
Shows how to use operations on types
Shows how to validate the input document passed to the query
Shows how to validate the input document passed to the query
Shows how to validate an element using the validate expression
Shows how to validate an element using the validate expression
Shows how to use schema awareness to match on element types instead of names
Shows how commonly used functions and variables can be put in a reusable library module
Shows how modules interact with schema support
Shows how to declare external functions within a query