R
rosemm
Hi.
I am new to XML. I am working on a pretty simple problem at the moment
but can't seem to figure out what I am doing wrong. I am trying to
print the last nameof every member listed in my file. However, all it
does is reprint the same last name over and over again.
What am I doing wrong? Below is the code I am using.
<xsl:template match="/">
<xsl:for-each select ="/MEMBER">
<xsl:apply-templates select="/MEMBER"/>
</xsl:for-each>
</xsl:template>
<xsl:template match="/MEMBER">
<xsl:value-of select="/MEMBER/@VALUE"/>
</xsl:template>
I am new to XML. I am working on a pretty simple problem at the moment
but can't seem to figure out what I am doing wrong. I am trying to
print the last nameof every member listed in my file. However, all it
does is reprint the same last name over and over again.
What am I doing wrong? Below is the code I am using.
<xsl:template match="/">
<xsl:for-each select ="/MEMBER">
<xsl:apply-templates select="/MEMBER"/>
</xsl:for-each>
</xsl:template>
<xsl:template match="/MEMBER">
<xsl:value-of select="/MEMBER/@VALUE"/>
</xsl:template>