Hi all I am new to XSLT and am having problems which I cant understand with the following XSL doc, I am using Xalan:
Code:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="kapil/note">
<xsl:value-of select="count(firstName)"/>
<xsl:value-of select="surname"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
The name of the document is kapil.xsl and the XML contains <name><firstName>Pete</firstName><surname>Sampras</surname></name>....
What I want is to print out the fisrtName and surname elements which are contained within the <name> tags. I am not getting any output and cannot see why, please can someone advise me....
Cheers,