I'm experimenting with ways of putting together a bibliography. In my XML file I have <item> objects which have a number of children including <title>, <series>, and <volume>. I want the output to appear as...
Title1. Series1. Volume 1.
Title2. Series1. Volume 2.
Title3. Series2. Volume 1.
Title4. Series3. Volume 1.
Title5. Series3. Volume 2.
etc.
Here is the template I've built so far in my XSLT...
<xsl:template match="/">
<xsl:for-each select="/Bibliography/item/title">
<p><xsl:value-of select="." />. <xsl:value-of select="/Bibliography/item/series" />. Volume <xsl:value-of select="/Bibliography/item/volume" />.</p>
</xsl:for-each>
</xsl:template>
I am successfully retrieving a list of titles. However, every single one is returning the very first series for the series and the number "1" for the volume number. How do I retrieve the sibling elements?
-------------------------
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of
www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.