4.XSL Transformation Register No:11306621054 MC 1803 - xml and web services lab ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" encoding="iso-8859-1" doctypepublic="-//W3C//DTD XHTML 1.0 Transitional//EN" doctypesystem="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/> <xsl:template match="/"> <meta http-equiv="Content-Type" content="text/html;
employee details
[
charset=iso-8859-1"/>
Serial No | Name | Age(years) | Height(in cm) | Weight(in kg) |
<xsl:for-each select="employee/details"> <xsl:sort select="age" order="ascending"/> <xsl:sort select="name" order="ascending"/> <xsl:choose> <xsl:when test="height < 170 and weight > 65 and age >40"> <xsl:value-of select="serial"/> | <xsl:value-of select="name"/> | <xsl:value-of select="age"/> | <xsl:value-of select="height"/> | <xsl:value-of select="weight"/> | NOT IDEAL WEIGHT |
<xsl:otherwise> <xsl:value-of <xsl:value-of <xsl:value-of <xsl:value-of <xsl:value-of | | | | |
select="serial"/> select="name"/> select="age"/> select="height"/> select="weight"/>
xml document: <employee> <details> <serial>1
Venugopal 25 175 <weight>67 <details> <serial>2
Hari 28 169 <weight>58 <details> <serial>3
vinoth 46 163 <weight>69 <details> <serial>4
sivakumar 34 175 <weight>78
<details> <serial>5
sounder 24 179 <weight>70