Re: [xsl] Could not select the text() of both parent & child nodes simultaneously

Subject: Re: [xsl] Could not select the text() of both parent & child nodes simultaneously
From: Jack Bush <netbeansfan@xxxxxxxxxxxx>
Date: Thu, 17 Jun 2010 18:01:39 -0700 (PDT)
Hi Steve,

The desire output would be:

 <team>Brasil (30 goals)<team>
 <team>Argentina (25 goals)<team>
 <team>Germany (22 goals)<team>
 <team>USA
(15 goals)<team>

Thanks in advance,

Jack


----- Original Message ----
From:
"steve.majewski@xxxxxxxxx" <steve.majewski@xxxxxxxxx>
To:
xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Sent: Fri, 18 June, 2010 12:41:58 AM
Subject:
Re: [xsl] Could not select the text() of both parent & child nodes
simultaneously


On Jun 17, 2010, at 10:23 AM, Jack Bush wrote:

> ( A
)<xsl:template match="ns:p[ns:strong='World Cup Competition:']">
>       
<xsl:for-each select="text()|ns:a">
>          <team><xsl:value-of
select="normalize-space()"/></team>
>        </xsl:for-each>
>     
</xsl:template>
>  Output
> <team>Brasil<team>
> <team>(30 goals)<team>
>
<team>Argentina<team>
> <team>(25 goals)<team>
> <team>Germany<team>
>
<team>(22 goals)<team>
> <team>USA<team>
> <team>(15 goals)<team>

Wnat do you
want the output to look like ?

Current Thread