View Single Post
  #3 (permalink)  
Old October 16th, 2007, 03:30 AM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

I'm not sure if this is what you are trying to produce:

Code:
<xsl:template match="book">
<div>Book: <xsl:value-of select="@name"/></div>
<div>
<xsl:apply-templates/>
</div>
</xsl:template>

<xsl:template match="zs"><span class="zs">Section <xsl:value-of select="@id"/></span></xsl:template>
<xsl:template match="c"><span class="c_{@id}">Chapter <xsl:value-of select="@id"/></span></xsl:template>
<xsl:template match="v"><span class="v_{@id}">Verse <xsl:value-of select="@id"/></span></xsl:template>
<xsl:template match="q"><span class="q_{@level}"><xsl:apply-templates/></span></xsl:template>
<xsl:template match="nd"><span class="nd"><xsl:apply-templates/></span></xsl:template>
/- Sam Judson : Wrox Technical Editor -/
Reply With Quote