Not much, the original posted code was fine, any
error was in some
part of the code not shown (most likely the wrong
current node, or wrong
namespace).
TRUE.
Your version does not test the attribute value at
all, it tests
if id_mensajesforos has a seleccionado attribute
(with any value) and
the content of the element has string value 'si'.
YES.If you want to check the value of attribute I
think this should work if you are checking from the
parent element template of the id_mensajesforos
element. As already pointed out it all depends where
you are testing from.
<xsl:choose>
<xsl:when
test="id_mensajesforos/@seleccionado='si'">
s
</xsl:when>
<xsl:otherwise>
n
</xsl:otherwise>
</xsl:choose>
Abhi
________________________________________________________________________
This e-mail has been scanned for all viruses by Star
Internet. The
service is powered by MessageLabs. For more
information on a proactive
anti-virus service working around the clock, around
the globe, visit:
http://www.star.net.uk
________________________________________________________________________
XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list