OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Rendering <person> with <email> Link in fo

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 name="xhref">
            <xsl:if test="email">
                <xsl:copy-of select="email"/>

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

  <personname>Louis F. Springer</personname>

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

Have I planted any logic bombs with this solution?


S/MIME Cryptographic Signature

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]