What xpath expression would return the category-item having uid sps002
/category-list/category/category-item-list/category-item[uid='sps2002']
<xsl:when
test="'sps0002'=//category-list/category/category-item-list/category-item/uid">
That tests if there us any uid anywhere in the document that has this
value, so it will be always true or always false depending on whether
such a node exists.
<xsl:value-of select="./uid"/>
so this will select the uid child of the current node whether or not
this is the node taht has the specified uid.
David