Skip to content

Commit

Permalink
Manage side in .cod (cockatrice) deckfile import
Browse files Browse the repository at this point in the history
  • Loading branch information
spider312 committed Oct 28, 2016
1 parent 055f096 commit 0a8f7f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xml_to_mw.xsl
Expand Up @@ -4,7 +4,11 @@
<xsl:template match="/cockatrice_deck">
<xsl:text>// NAME: </xsl:text><xsl:value-of select="deckname"/><xsl:text>&#xa;</xsl:text>
<xsl:for-each select="zone/card">
<xsl:value-of select="@number"/><xsl:text> </xsl:text><xsl:value-of select="@name"/><xsl:text>&#xa;</xsl:text>
<xsl:if test="../@name = 'side'"><xsl:text>SB: </xsl:text></xsl:if>
<xsl:value-of select="@number"/>
<xsl:text> </xsl:text>
<xsl:value-of select="@name"/>
<xsl:text>&#xa;</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

0 comments on commit 0a8f7f6

Please sign in to comment.