Information Technology Reference
In-Depth Information
< ? xml version =”1.0” encoding=”UTF 8”? >
< xsl:stylesheet
xmlns:xsl =”http://www.w3.org/1999/XSL/Transform”
version =”1.0”
xmlns:wsmo=”http://www.wsmo.org/namespace”
xmlns=”http://www.w3.org/1999/xhtml” >
< xsl:template match=”/” >
< html xmlns=”http://www.w3.org/1999/xhtml” >
< title > The chairs of the WSMO Working Group < /title >
< body >
< h1 > WSMO WG Chairs < /h1 >
< xsl:apply templates/ >
< /body >
< /html >
< /xsl:template >
< xsl:template match=”wsmo:member[@chair='yes']” >
< em >< xsl:value of select=”./wsmo:lastname”/ >< /em > ,
< xsl:value
of select =”./wsmo:firstname”/ >< br/ >
< /xsl:template >
< xsl:template match=”text()
|
@
”/ >
< / xsl:stylesheet >
(a) An XSLT Stylesheet . . .
(b) . . . which converts the XML file from Listing. 2.1 into XHTML
Fig. 2.6. XSLT: converting between different XML formats
XPath and XSLT processors are also available off the shelf, e.g. XERCES 11
from Apache. The simplicity of the underlying data model combined with the
increasing tool support has made XML the most successful data exchange
format for information integration applications (not restricted to Web appli-
cations alone).
Applications of XML
Nowadays, XML has reached the status of a universal data exchange format
with high industry support. In applications such as data integration or Web
11 http://xerces.apache.org .
Search WWH ::




Custom Search