HI, I'm having a hard time with this...
I just completed an XSLT file for reading TEI data from a series of encoded letters.
I created a number of templates for grabbing the info, but I just discovered that at least one of the records has two letters encoded within it. I just need to loop through each of the templates to generate both letters.
Here's the basic code for what I've been trying to accomplish:
Unfortunately, this does not seem to work. Is there something I'm missing here? The code validates, but generates not of the content (without the for-each statements, it generates one letter; I need it to check for multiple instances within the XML document, if there are more than one. Does anyone have any ideas? The entire letter content lives within the <tei:div> tags.
I just completed an XSLT file for reading TEI data from a series of encoded letters.
I created a number of templates for grabbing the info, but I just discovered that at least one of the records has two letters encoded within it. I just need to loop through each of the templates to generate both letters.
Here's the basic code for what I've been trying to accomplish:
Code:
<xsl:for-each select="*/tei:div">
<div class="content">
<xsl:call-template name="letterOpener"/>
<xsl:call-template name="text" />
<xsl:call-template name="letterCloser"/>
<xsl:call-template name="margin"/>
</div>
</xsl:for-each>