xsl-list
[Top] [All Lists]

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

2010-06-17 09:42:26

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 ?



--~------------------------------------------------------------------
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>
--~--