我有一款参考类型和内容。
例
投入文件:
<reference>
<emph type="bold">Antony</emph><emph type="bold">,</emph> <emph type="bold">R.</emph>
<emph type="bold">and</emph> <emph type="bold">Micheal</emph><emph type="bold">,</emph> <emph type="bold">V.</emph>
<emph type="italic">reference title</emph></reference>
收到的材料:
<p class="reference"><strong>Antony</strong><strong>,</strong> <strong>R.</strong>
<strong>and</strong> <strong>Micheal</strong><strong>,</emph>
<emph type="bold">V.</strong> <em>reference title></em></p>
所需产出档案:
<p class="reference"><strong>Antony, R. and Micheal, V.</strong> <em>reference title</em></p>
我的字母:
<xsl:template match="reference">
<p class="reference"><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="emph">
<xsl:if test="@type= bold ">
<strong><xsl:apply-templates/></strong>
</xsl:if>
<xsl:if test="@type= italic ">
<em><xsl:apply-templates/></em>
</xsl:if>
</xsl:template>
需要在xslt进行哪些更正,以获得<代码><strong> 部分时间,如所需产出档案?
请建议任何人。
By, Antny.