Poniższy kawałek arkusza XSLT nie jest poprawny (nie działa i wynikiem jest komunikat: variables cannot be used within this expression)
<xsl:param name="disclaimerType"/>
<xsl:output method="xml" indent="yes"/>
<xsl:template match="disclaimer" priority="-1">
</xsl:template>
<xsl:template match="disclaimer[@type=$disclaimerType]" priority="2">
<div class="disclaimer">
<h2>
<xsl:value-of select="./header"/>
</h2>
<xsl:for-each select="./p">
<p>
<xsl:value-of select="."/>
</p>
</xsl:for-each>
</div>
</xsl:template>
Chodzi mianowicie o użycie parametru $disclaimerType wewnątrz selektora atrybutu.
Jak sparametryzować arkusz XSLT po wartości selektora atrybutu?