<inbox>
<email>
<to>John Doe</to>
<from>Jane Doe</from>
<subject>This is the subject</subject>
<paragraph>P1</paragraph>
<paragraph>P2</paragraph>
<paragraph>P3</paragraph>
<paragraph>P4</paragraph>
</email>
</inbox>
I'm trying to get the text within the multiple <paragraph> tags through
XSLT. If I have the following XSLT stylesheet:
<xsl:template match="/">
<html>
<body>
<p>To: <xsl:value-of select="to"/></p>
<p>From: <xsl:value-of select="from"/></p>
<p>Subject: <xsl:value-of select="subject"/></p>
</body>
</html>
</xsl:template>
If I want to cycle through the four paragraphs in the above, how would
I do that? I was thinking of using <xsl:for-each> but couldn't figure
out how to get the text.
Thanks...