I want to make an axis the default for an entire select.
After reading the above sentence myself i know its quite unclear so here’s a longer explanation:
I’m finding a way to shorten this piece of code:
<xsl:variable name="v">
<xsl:choose>
<xsl:when test="self::name|self::history|self::area|self::title">qwerty</xsl:when>
</xsl:choose>
</xsl:variable>
I’m talking about the part: self::name|self::history|self::area|self::title is there a way to shorten it to something like this: self::(name|history|area|title) ?
or anything else you guys could propose?
Another approach: whenever you see xsl:choose, ask whether you could use xsl:apply-templates instead. Why not: