+ <xsl:choose>
+ <xsl:when test="$form = 'full'">
+ <xsl:value-of select="$person/name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- Bug: just the first name is abbreviated. The others are ignored. -->
+ <xsl:value-of select="substring($person/name,1,1)"/>
+ <xsl:text>.</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>