xsl-variable

<xsl:variable> Print out value of XSL variable using <xsl:value-of>

I'm trying to output a variable's literal string value, after it is being set depending on whether a node exists or not. I think the condition check logic is correct. But it is not outputing the values... <xsl:variable name="subexists"/> <xsl:template match="class"> <xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy> <xsl:ch...

Is xsl:sequence always non-empty?

I don't understand output from this stylesheet: <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; <xsl:template match="/"> <xsl:apply-templates select="root/sub"/> </xsl:template> <xsl:template match="sub"> <xsl:variable name="seq"> <xsl:sequence select="*" /> ...