xsl-list
[Top] [All Lists]

logical AND does not work in xsl:for-each element combination

2005-09-24 23:02:14

Hi xslt folks,

I know that the logical AND was surely discussed but it could not help me to 
solve the problem.

Shortly I have teh following xml structure

<GEDCOM> 
  <EventRec>
    <Participant> 
      <Link Ref="X1"/>
      <Role>Y1</Role>
    </Participant> 
    <Participant> 
      <Link Ref="X2"/>
      <Role>Y2</Role>
    </Participant> 
    <Participant> 
      <Link Ref="X3"/>
      <Role>Y3</Role>
    </Participant> 
    <Date>Date1</Date>
    <Place>Place1</Place>
    <Information>Info1</Information>
  </EventRec>

I want to locate a specific participant and extract the nodes Date, Place and 
Info with the following xsl:for-each 

<xsl:for-each select="/GEDCOM/EventRec/Participant[(_at_)Ref='X1' and 
Role['Y1']]">
<xsl:value-of select="../Date"/>
</xsl:for-each>

The output for both cases separated is correct but when combined it displays 
always 3 dates and not only one date

What I am doing wrong here ? 
-- 
PTE
_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>