[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] How to create multiple Html files considering attribute values in XML


Subject: [xsl] How to create multiple Html files considering attribute values in XML
From: Sanjaya Liyanage <sanjayacl@xxxxxxxxx>
Date: Sat, 20 Aug 2011 17:26:41 +0000

Hi all,
   I want to create multiple Html files considering attribute values in XML.

My XML

<School>

<Student age="17">
<firstname>kasun</firstname>
<lastname>lakpriya<lastname>
</Student>
<Student age="17">
<firstname>thiwanka</firstname>
<lastname>somasiri</lastname>
</Student>
<Student age="20">
<firstname>eshan</firstname>
<lastname>sudharaka</lastname>
</Student>
<Student id="20">
<firstname>haritha</firstname>
<lastname>tennakoon</lastname>
</Student>
<School>

   I want to generate two html files and each should contain the
details of students with same age.(here one html for students with age
17 and the other for age 20).How can I implement this in XSLT?Any help
is welcome.Thank you

Regards
Sanjaya Liyanage


Current Thread
Keywords
xml