|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Same name Elements in more than one node
--- Oleg Tkachenko <olegt@xxxxxxxxxxxxx> 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>     : </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
|
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
|

Cart








