Changeset 206

Show
Ignore:
Timestamp:
03/19/07 14:37:05
Author:
dan
Message:

correct number of frames for <clip>s, courtesy of Alex Midgley.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/xslt/simple-elements.xslt

    r182 r206  
    455455                </xsl:choose> 
    456456        </xsl:variable> 
    457         <DefineSprite objectID="{$id}" frames="1"> 
     457    <DefineSprite objectID="{$id}" frames="1"> 
     458        <xsl:variable name="frames"> 
     459                <xsl:choose> 
     460                        <xsl:when test="count(frame)"> 
     461                                <xsl:value-of select="count(frame)"/> 
     462                        </xsl:when> 
     463                        <xsl:otherwise>1</xsl:otherwise> 
     464        </xsl:choose> 
     465    </xsl:variable> 
     466        <DefineSprite objectID="{$id}" frames="{$frames}"> 
    458467                <tags> 
    459468                        <xsl:apply-templates/>