0
/カテゴリが空であっても、choose文はtest = "./ category"で肯定的になります。XSL選択しないでください。
カテゴリ値の値は<![CDATA []]>空白の場合は<![CDATA [some_code]]>満杯の場合。
CDATAのようなものが値のようなものになっているようです。
<xsl:when test="./Category">
<ref type="category"><xsl:value-of select="./Category" /></ref>
</xsl:when>
<xsl:otherwise>
<id_category_default>2</id_category_default>
</xsl:otherwise>
</xsl:choose>