[xsl] Warning: The attribute axis starting at an attribute node will never select anything

Subject: [xsl] Warning: The attribute axis starting at an attribute node will never select anything
From: "Mark" <mark@xxxxxxxxxxxx>
Date: Mon, 31 Oct 2011 05:58:27 -0700
The following line:
<xsl:attribute name="title" select="concat(if (ancestor::Set/@domain eq 'cr') then ........


The code executes the "if/then/else as I expected but produces the warning: "The attribute axis starting at an attribute node will never select anything"

What is the proper way to test the value of "ancestor::Set/@domain" that avoid this warning?
Thanks,
Mark


Current Thread