|
[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: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Mon, 12 Aug 2002 19:07:36 +0200
|
Both my and Dimitre's shortened version should work.
Regards,
Joerg
Carlos Durand wrote:
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
--- Joerg Heinicke <joerg dot heinicke at gmx dot de wrote:
<xsl:when test="/site/dadosPasseio/correlato/item[@correlato = current()/@idPasseio]">
>>--- Dimitre Novatchev <dnovatchev@xxxxxxxxx> escreveu:
>
No need for current(), use:
@idPasseio = /site/dadosPasseio/correlato/item/@correlato
--
System Development
VIRBUS AG
Fon +49(0)341-979-7419
Fax +49(0)341-979-7409
joerg.heinicke@xxxxxxxxx
www.virbus.de
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
| RSS 2.0 |
|
| Atom 0.3 |
|
|