flowering Plant
name
type
Carnation
Perennial
Rose
Perennial
Sunflower
Perennial
Orchid
Perennial
Begonia
Perennial
Lily
Perennial
Hydrangia
Perennial
Peony
Perennial
<plants> <title>Flowering Plants</title> <item> <name>Carnation</name> <image>/XML/session1/exercise3/flowers/carnation.jpg</image> <origName>Dianthus Caryophyllus</origName> <origin>Mediteranean Countries</origin> <type>Perennial</type> <height>Short</height> <sun>Full</sun> <species>16</species> <color>Variety</color> </item> <item> <name>Rose</name> <image>/XML/session1/exercise3/flowers/rose.jpg</image> <origName>Rosa</origName> <origin>Asia</origin> <type>Perennial</type> <height>Tall</height> <sun>Full</sun> <species>300</species> <color>Variety</color> </item> <item> <name>Sunflower</name> <image>/XML/session1/exercise3/flowers/sunflower.jpg</image> <origName>Helianthus</origName> <origin>Europe</origin> <type>Perennial</type> <height>Tall</height> <sun>Full</sun> <species>70</species> <color>Yellow</color> </item> <item> <name>Orchid</name> <image>/XML/session1/exercise3/flowers/orchid.jpg</image> <origName>ORCHIDACEAE</origName> <origin>Central America</origin> <type>Perennial</type> <height>Medium</height> <sun>Partial</sun> <species>28,000</species> <color>Variety</color> </item> <item> <name>Begonia</name> <image>/XML/session1/exercise3/flowers/begonia.jpg</image> <origName>Tuberhybrida</origName> <origin>Europe</origin> <type>Perennial</type> <height>Short</height> <sun>Partial</sun> <species>1,800</species> <color>Variety</color> </item> <item> <name>Lily</name> <image>/XML/session1/exercise3/flowers/lily.jpg</image> <origName>Lilium Candidum</origName> <origin>Middle East</origin> <type>Perennial</type> <height>Tall</height> <sun>Partial</sun> <species>90</species> <color>Variety</color> </item> <item> <name>Hydrangia</name> <image>/XML/session1/exercise3/flowers/hydrangea.jpg</image> <origName>Hortensia</origName> <origin>Asia</origin> <type>Perennial</type> <height>short</height> <sun>Partial</sun> <species>75</species> <color>Variety</color> </item> <item> <name>Peony</name> <image>/XML/session1/exercise3/flowers/peopny.jpg</image> <origName>Paeony</origName> <origin>Asia</origin> <type>Perennial</type> <height>Tall</height> <sun>Full</sun> <species>33</species> <color>Variety</color> </item> </plants>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <body> <h2>flowering Plant</h2> <table border="1"> <tr bgcolor="#9acd32"> <th>name</th> <th>type</th> </tr> <xsl:for-each select="plants/item"> <tr> <td><xsl:value-of select="name" /></td> <td><xsl:value-of select="type" /></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet>