|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: select the attribute II, compare the atrribute
This XSL --
<xsl:choose>
<xsl:when
test="id_mensajesforos[@seleccionado='si']">
s
</xsl:when>
<xsl:otherwise>
n
</xsl:otherwise>
</xsl:choose>
correctly tests the attribute value, as you have
mentioned.. But it is correct, only if it is evaluated
in the right *context*..
Regards,
Mukul
--- Dionisio Ruiz de Zarate <dionisio@xxxxxxxxxxxxx>
wrote:
> i have, in one XML file this:
> <id_mensajesforos
> seleccionado="si">46</id_mensajesforos>
>
> how can i determine the attribute value?
> for this i am making this:
> xsl:choose>
> <xsl:when
> test="id_mensajesforos[@seleccionado='si']">
> s </xsl:when>
> <xsl:otherwise>n</xsl:otherwise>
> </xsl:choose>
>
> but it doesn't run well.
> can you help me for knowing if the seleccionado
> attribute value is "si or
> no?
> thanks
>
>
>
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








