|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I need to make an xml schema and stylesheet for the game, so far I have this:
<xsl:stylesheet <xsl:template match="/"> <html> <head> <title>Battle Grid<title/> </head> <body> <table border="2"> <tbody> <tr> <xsl:call-template name="header-row"> <xsl:with-param name="count" select="1"/> </xsl:call-template> </tr> </tbody> </table> </body> </html> </xsl:template> <xsl:template name="header-row"> <xsl: param name="count"/> <xsl:if test="$count != 11"> <th> <xsl:value-of select="$count"/> </th> <xsl:call-template name="header-row"> <xsl:with-param name="count" select="$count + 1"/> </xsl:call-template> </xsl:if> </xsl:template> </xsl:stylesheet> what do you think...anything wrong with it, need help with it please! it is a project...and I am a Uni student. Last edited by Karishma : May 10th, 2004 at 06:18 AM. Reason: for some reason there is a smyly in the code! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Battleships Game |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|