This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Same name Elements in more than one node


--- Oleg Tkachenko <olegt@multiconn.com> wrote:
> The current node is CO2 and it doesn't have ENCODINGANALOG
> attribute, so 
> result of this instruction is empty string.

Oleg,
Thanks, I see that (Duh!). I figured that part out. The problem is
that I want to get the ENCODINGANALOG attribute for each PERSNAME
element I output. Since I cannot figure out how to write for the
current node PERSNAME for an instance of two PERSNAME elements, 

<xsl:value-of select="./PESNAME[2]"/>
<xsl:value-of select="./@ENCODINGANALOG[2]"/>

then I decided to write two for-each statements, one inside another,
to take care of it. It is clumsy and awkward and very very
frustrating, but it works (below).

Mike F.

<xsl:for-each select="//C02">
  <TR>
    <xsl:for-each select="./DID/UNITTITLE/PERSNAME">
      <TD>
        <FONT size="+3">
          <xsl:value-of select="."/>
        </FONT>
        <xsl:text>&#x20;&#x20;&#x20;&#x20;&#x20;:&#x20;</xsl:text>
          <xsl:value-of select="./@ENCODINGANALOG"/>
      </TD>
    </xsl:for-each>
  </TR>
</xsl:for-each>


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]