michidan
01-16-2009, 06:27 PM
Hi,
I have a problem with an xml/xsl issue. I can't get the value of the 'body' element to display. the value of 'abstract' displays fine but no joy on the body.
Is body a reserved word or something?
Any help you could provide would be great.
Here is a snippet my xml:
<ci>
<abstract>Abstract Goes Here</abstract>
<body>Body Goes Here</body>
</ci>
Here is a snippet of my xsl:
<xsl:template match="/">
<xsl:for-each select="//ci">
<h3><xsl:value-of select="title" /></h3>
<p>
<xsl:value-of select="abstract" disable-output-escaping="yes" /> <br />
</p>
<p>
<xsl:value-of select="body" disable-output-escaping="yes" /> <br />
</p>
</xsl:for-each>
</xsl:template>
I have a problem with an xml/xsl issue. I can't get the value of the 'body' element to display. the value of 'abstract' displays fine but no joy on the body.
Is body a reserved word or something?
Any help you could provide would be great.
Here is a snippet my xml:
<ci>
<abstract>Abstract Goes Here</abstract>
<body>Body Goes Here</body>
</ci>
Here is a snippet of my xsl:
<xsl:template match="/">
<xsl:for-each select="//ci">
<h3><xsl:value-of select="title" /></h3>
<p>
<xsl:value-of select="abstract" disable-output-escaping="yes" /> <br />
</p>
<p>
<xsl:value-of select="body" disable-output-escaping="yes" /> <br />
</p>
</xsl:for-each>
</xsl:template>