Hi:
I have following xslt

    <xsl:variable name="testme">
        <a>a1</a>
        <a>aa2</a>
    </xsl:variable>

 <!--          <xsl:variable name ="gi" select="$testme/a"/> -->
       <xsl:variable name ="gi" >
            <xsl:choose>
                <xsl:when test="2 = 1">
                    <xsl:sequence select="$testme[1]"/>              
                </xsl:when>
                <xsl:otherwise>
                    <xsl:copy-of select="$testme/a"/>
                </xsl:otherwise>
            </xsl:choose>
        </xsl:variable>
        <xsl:message>
            <xsl:copy-of select="$gi"/>
        </xsl:message>
        <xsl:message>
            <xsl:value-of select="count($gi)"></xsl:value-of>
        </xsl:message>
    </xsl:template>


when I use the commented out method shown above, I have a sequence of two.
when I use the choose method shown above, I have a sequence of one.
I tried sequence instead of copy-of, same results.

-Thanks for any insight?