This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Re: Re: Accessing attributes
- From: Carlos Durand <groupdurand at yahoo dot com dot br>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 12 Aug 2002 13:39:27 -0300 (ART)
- Subject: Re: [xsl] Re: Re: Accessing attributes
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@yahoo.com>
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