[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: select the attribute II, compare the atrribute

Subject: Re: select the attribute II, compare the atrribute
From: Abhijit Junnare <mavlaabhi@xxxxxxxxx>
Date: Fri, 12 Sep 2003 07:23:28 -0700 (PDT)
xsl select attribute
Also it depends in what context you are testing. 


--- Abhijit Junnare <mavlaabhi@xxxxxxxxx> wrote:
> There is just a small problem I guess in the way you
> are testing. This is your xml I believe
> 
> <id_mensajesforos seleccionado="si">46
> </id_mensajesforos>
> 
> Use the following.
> 
> <xsl:choose>
> <xsl:when
> test="id_mensajesforos[@seleccionado]='si'">
>       s 
> </xsl:when>
> <xsl:otherwise>
>      n
> </xsl:otherwise>
> </xsl:choose>
> 
> You SHOULD CLOSE THE SQUARE BRACKET AND THEN PUT THE
> =
> sign and THEN THE VALUE YOU WANNA CHECH FOR IN
> SINGLE
> QUOTES.
> Hope this helps.
> Good Luck !
> Abhi
> 
> 
> > --- 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
> > 
> 
> 
> __________________________________
> 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
> 


__________________________________
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.