transparent
Programmer
I have the following XML for a news story. It is designed to re-format some XML There are multiple images associated with it.
<content>
<story>
<headline>a headline</headline>
<image></image>
<image></image>
<image></image>
<image></image>
</story>
</content>
I want to select the values of the image tags with XSL
This is what I have so far.
<xsl:for-each select="content/story"
<story>
<headline><xsl:value-of select="headline" /></headline>
<xsl:for-each select="image">
<image><xsl:value-of select="image" /></image>
</xsl:for-each>
</story>
</xsl:for-each>
However it doesn't seem to select the image values so that it produces:
<headline>a headline</headline>
<image></image>
<image></image>
<image></image>
<image></image>
What am I doing wrong?
<content>
<story>
<headline>a headline</headline>
<image></image>
<image></image>
<image></image>
<image></image>
</story>
</content>
I want to select the values of the image tags with XSL
This is what I have so far.
<xsl:for-each select="content/story"
<story>
<headline><xsl:value-of select="headline" /></headline>
<xsl:for-each select="image">
<image><xsl:value-of select="image" /></image>
</xsl:for-each>
</story>
</xsl:for-each>
However it doesn't seem to select the image values so that it produces:
<headline>a headline</headline>
<image></image>
<image></image>
<image></image>
<image></image>
What am I doing wrong?