4.xsl

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View 4.xsl as PDF for free.

More details

  • Words: 192
  • Pages: 3
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"/>

<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:otherwise>

select="serial"/> select="name"/> select="age"/> select="height"/> select="weight"/>

Serial No Name Age(years) Height(in cm) Weight(in kg)
<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:value-of
<xsl:value-of
<xsl:value-of
<xsl:value-of
<xsl:value-of
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