[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Both my and Dimitre's shortened version should work.
Regards,
Joerg
Carlos Durand wrote:
--
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] Re: Re: Accessing attributes
Subject: Re: [xsl] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: Re: Accessing attribu, Carlos Durand | Thread | [xsl] Numbering elements by countin, Yves Forkl |
[xsl] how to reassign variable valu, James L. | Date | RE: [xsl] how do I retrieve element, Kimberly Hahn |
Month |