I need a review of the following customization.

I have an fo customization that provides a mailto uri link for <person> tags that contain a <personname> and an <email>

<xsl:template match="person">
   <xsl:call-template name="simple.xlink">
       <xsl:with-param name="content">
           <xsl:call-template name="person.name"/>
       </xsl:with-param>
       <xsl:with-param name="xhref">
           <xsl:if test="email">
               <xsl:text>mailto:</xsl:text>
               <xsl:copy-of select="email"/>
           </xsl:if>
       </xsl:with-param>
   </xsl:call-template>
</xsl:template>

So this produces the desired results for <person> tags like:

<person>
 <personname>Louis F. Springer</personname>
 <email>[EMAIL PROTECTED]</email>
</person>

It properly handles the case where no <email> is provided.

Have I planted any logic bombs with this solution?

Lou

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to