apply-templates requires a node set as the value of its select
attribute, but:
<xsl:apply-template select="not(ancestor::player/@pword=$pmkey
and @ID >= $from and @ID <= $to)"
assuming the missing /> is really there at the end selects a boolean
value so either true() or false(0 this isn't a node set and should
generate a run time error whatever value is returned.
I think that inside the xsl:copy you want
<xsl:choose>
<xsl:when test="ancestor::player/@pword=$pmkey
and @ID >= $from and @ID <= $to">
<xsl:value-of select="$type"/>
</xsl:when>
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
</xsl:choose>
don't you?
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list