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

Re: Re: Re: Accessing attributes

Subject: Re: Re: Re: Accessing attributes
From: Carlos Durand <groupdurand@xxxxxxxxxxxx>
Date: Mon, 12 Aug 2002 13:39:27 -0300 (ART)
download gratis video jericoacoara
Ok people,

Here's my XML:
<site>
<passeio idioma="1">
		<item passeio="iuop" idPasseio="9"/>
		<item passeio="Cuzco" idPasseio="10"/>
		<item passeio="cidade" idPasseio="11"/>
		<item passeio="Ibitipoca" idPasseio="12"/>
		<item passeio="Jericoacoara" idPasseio="4"/>
		<item passeio="Cracatua" idPasseio="6"/>
		<item passeio="Atacama" idPasseio="2"/>
	</passeio>
	<dadosPasseio idPasseio="10">
		<correlato>
			<item correlato="9"/>
			<item correlato="10"/>
			<item correlato="11"/>
		</correlato>
	</dadosPasseio>
</site>

Inside a for-each loop I want to know if exists a
site/passeio/item/@idPasseio inside a
/site/dadosPasseio/correlato/item/@correlato, the
current @idPasseio equals of any @correlato, if this
is correct the i create a select attribute in html
code.

Thanks all

 --- Dimitre Novatchev <dnovatchev@xxxxxxxxx>
escreveu: > 
> --- Joerg Heinicke <joerg dot heinicke at gmx dot
> de> wrote:
> 
> > Hello Carlos,
> > 
> > both answers until now seem to be incorrect. I
> assume, that you are
> > only missing current():
> > 
> > <xsl:when
> test="/site/dadosPasseio/correlato/item[@correlato =
> > current()/@idPasseio]">
> > 
> 
> No need for current(), use:
> 
> @idPasseio =
> /site/dadosPasseio/correlato/item/@correlato 
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
>  

_______________________________________________________________________
Yahoo! PageBuilder
O super editor para criação de sites: é grátis, fácil e rápido.
http://br.geocities.yahoo.com/v/pb.html

 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.