brothercake
12-15-2002, 05:20 AM
Say I've got really simple xml:
<webpage>
<para>some text in paragraph 1</para>
<para>some text in paragraph 2</para>
<para>some text in paragraph 3</para>
</webpage>
And what I want to do is:
<xsl:for-each select="webpage/para">
<p>
<xsl:value-of select="para" />
</p>
</xsl:for-each>
But of course it doesn't work - there's no <para> inside <para> to get the value of !
I'm obviously failing to grasp something fundamental ... ??
<webpage>
<para>some text in paragraph 1</para>
<para>some text in paragraph 2</para>
<para>some text in paragraph 3</para>
</webpage>
And what I want to do is:
<xsl:for-each select="webpage/para">
<p>
<xsl:value-of select="para" />
</p>
</xsl:for-each>
But of course it doesn't work - there's no <para> inside <para> to get the value of !
I'm obviously failing to grasp something fundamental ... ??