View Single Post
  #5 (permalink)  
Old October 16th, 2007, 09:11 AM
cfflexguy cfflexguy is offline
Registered User
Join Date: Oct 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

amazing... it looks like that probably produces what i need!


quote:Originally posted by samjudson
 I'm not sure if this is what you are trying to produce:

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

<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