<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
xsl:stylesheet
version
=
"1.0"
<
xsl:template
match
=
"/"
>
<
html
>
<
body
>
<
h1
align
=
"center"
>Students' Basic Details</
h1
>
<
table
border
=
"3"
align
=
"center"
>
<
tr
>
<
th
>Details</
th
>
</
tr
>
<
tr
>
<
td
>
<
xsl:apply-templates
select
=
"/student/s[1]/name"
/>
<
xsl:apply-templates
select
=
"/student/s[1]/branch"
/>
<
xsl:apply-templates
select
=
"/student/s[1]/age"
/>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
xsl:apply-templates
select
=
"/student/s[2]/name"
/>
<
xsl:apply-templates
select
=
"/student/s[2]/branch"
/>
<
xsl:apply-templates
select
=
"/student/s[2]/age"
/>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
xsl:apply-templates
select
=
"/student/s[3]/name"
/>
<
xsl:apply-templates
select
=
"/student/s[3]/branch"
/>
<
xsl:apply-templates
select
=
"/student/s[3]/age"
/>
</
td
>
</
tr
>
</
table
>
</
body
>
</
html
>
</
xsl:template
>
<
xsl:template
match
=
"name"
>
Name:
<
span
style
=
"font-family:cursive;color:#ff0000"
>
<
xsl:value-of
select
=
"."
/>
</
span
>
<
br
/>
</
xsl:template
>
<
xsl:template
match
=
"branch"
>
Branch:
<
span
style
=
"font-family:serif;color:#0ff000"
>
<
xsl:value-of
select
=
"."
/>
</
span
>
<
br
/>
</
xsl:template
>
<
xsl:template
match
=
"age"
>
Age:
<
span
style
=
"font-family:fantsy;color:#0000ff"
>
<
xsl:value-of
select
=
"."
/>
</
span
>
<
br
/>
</
xsl:template
>
</
xsl:stylesheet
>