A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
display xml as html
Joined: Sep 27, 2004
Feb 11, 2005 00:30:00
I have the xml file like this:
<?xml version='1.0'?> <calendar> <year>2005</year> <months><month>January</month> <month>February</month> <month>March</month> <month>April</month> <month>May</month> <month>June</month> <month>July</month> <month>August</month> <month>September</month> <month>October</month> <month>November</month> <month>December</month> </months> </calendar>
I want the html o/p like this:
I am getting the years properly. I am unable to get the months. How do I get the same?
For yrs, in the xsl, i have written
<xsl:for-each select="//year"> <tr> <TD bgcolor="#E2E2E2"> <A class="n1" href="PressReleasesYear.htm"><xsl:apply-templates/><xsl:text> </xsl:text></A> </TD> </tr> </xsl:for-each>
SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
I agree. Here's the link:
subject: display xml as html
crimson error encountered
user selection of multiple items?
Displaying all the months in the year
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013