Skip to content

Commit

Permalink
wrapper fix
Browse files Browse the repository at this point in the history
  • Loading branch information
E.Azer Koçulu committed Aug 13, 2010
1 parent 4404427 commit 6d4bd1a
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions template.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,24 @@
</xsl:template>

<xsl:template match='/chessboard'>
<link rel='stylesheet' href='themes/default.css'></link>
<div>
<xsl:attribute name="class">
chessboard
<xsl:choose>
<xsl:when test='perspective="w"'>
perspective-white
</xsl:when>
<xsl:otherwise>
perspective-black
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:call-template name="list-content">
<xsl:with-param name="content" select="/chessboard/fen" />
</xsl:call-template>
<div class='chessboard'>
<link rel='stylesheet' href='themes/default.css'></link>
<div>
<xsl:attribute name="class">
chessboard
<xsl:choose>
<xsl:when test='perspective="w"'>
perspective-white
</xsl:when>
<xsl:otherwise>
perspective-black
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:call-template name="list-content">
<xsl:with-param name="content" select="/chessboard/fen" />
</xsl:call-template>
</div>
</div>
</xsl:template>
</xsl:stylesheet>

0 comments on commit 6d4bd1a

Please sign in to comment.