XSLT: If tag exists, apply template; if not, choose static value
问题 I am new to XSLT in general so please bear with me... With that in mind, what I am trying to do is check for a certain tag in the XML. If it is there I want to apply a template. If not, I want to add it (as a blank value). Basically always forcing it to be in the final output. How would I do this? I had something like this... <xsl:choose> <xsl:when test="@href"> <xsl:apply-templates select="country" /> </xsl:when> <xsl:otherwise> </xsl:otherwise> </xsl:choose> The top poriton of the code is