XML and Application Integration
XML and Application Integration
XML and Application Integration
XML Namespaces
A namespace is a collection of names that may be XSLT Mechanism
used in an XML document as elements or attribute Transforming an XML document using XSLT
names requires two main steps
o Identify names with a particular domain and 1. Structural transformation
avoid redundancy - Data is transformed from the input structure to the
o Allow use of the same name with two different output structure
meanings - Involves selecting data, grouping it, sorting it, or
Namespaces are identified by a Uniform Resource aggregating it
Indicator (URI) 2. Formatting the text to new characteristics
o Which allows each namespace to be unique - Information is placed in a particular type of text
structure. E.g., XML, HTML, PDF, etc
Example – we may have three elements known as
“account”
o Frequent-flyer account
o Bank account
o Customer account at hotel
o Each account name is associated with a
particular domain
Airline URI (http://www.airline.org)
o Associate the element with a particular
namespace XSLT Processors
http://www.airline.org.account XSLT processors apply an XSLT style sheet to an
The importance of XML namespace in the context XML source document and thus create a resulting
of application integration is their ability to define document
common application semantics between trading o While remaining consistent with the way
partners processors handle XML through trees
What is XSLT? XSLT must process three trees
Extensible Stylesheet Language Transformations 1. Input tree
(XSLT) 2. Stylesheet tree
o Language designed to transform one XML 3. Output tree
document into another changing both its Stylesheet document defines the transformation to
schema and content in the process occur
o At its most primitive, it is text processing o XSLT processor uses stylesheet tree to
system transform the input tree to the output tree
o Can generate other standard markup languages
XSLT provides a standard XML document-
transformation mechanism using a stylesheet as a
common processing engine