XSLT
XSLT Process:
XSLT:
The Extensible Stylesheet Language for Transformations, It is particularly
designed to transform any XML document into another XML document containing
Formatting objects: pages, blocks, graphics, text, etc.
It
can be used like a stylesheet or embedded in programming language.
XSLT1.0
accepted in 1999 as W3C standard. XSLT2.0 just reached recommendation level in
January 2007.
<?xml version="1.0"7>
<?xml-stylesheet
href="stylel.xs1" type="text/xsl"?>
<items>
<item
partNum="12350-AA"> <productName>Pens</productName>
<quantity>2</quantity>
</item>
<item>
<productName>Pencils</productName>
<quantity>4</quantity>
</item>
</items>
|
<?xml version="1.0"7>
<xsl:stylesheet
version="1.0" xmlns:xs1="http://www.w3.org/TR/wD-xs1">
<xsl:template
match="/">
<html>
<head>
</head>
<body>
<ol>
<li>Root</li>
<xs1:apply-templates/>
</01>
</body>
</html>
</xsl:template>
|
OUTPUT: