XSLT-FO for-each

Based on your update: since apparently you have no code to add for a Locations element, you could shorten your code by changing:

<xsl:apply-templates select="Locations"/>

to:

<xsl:apply-templates select="Locations/LocName"/>

and then doing:

<xsl:template match="LocName"> 
    <fo:block text-align="left" font-family="Arial"> 
        <fo:inline font-weight="bold">
            <xsl:value-of select="."/>
        </fo:inline> 
    </fo:block> 
</xsl:template>

Leave a Comment