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]

Re: AW: matching nodes by their value


> IMHO this counldn't work because the value of the <a> node is empty.
> AAA and BBB are values of <font> tags.

Wrong!
So Jonas is right:
> > value of a node is "concatenation of all parsed character data between
> > element's start tag and end tag" (from XML Bible Chapter 14).

Check it out:
XML:
<td><a href="http://"><font>AAA</font></a></td>

XSLT:
<xsl:stylesheet version="1.0" 
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:p="foo">

<xsl:template match="td">
   <xsl:value-of select="a" />
</xsl:template>

</xsl:stylesheet>

Cheers,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 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]