David Carlisle wrote:
Hi
is it possible to state in the template that when
there is no <fid> element, the corresponding
formalpara has no ID?
don't do
<formalpara id="{fid}">
do
<formalpara>
<xsl:if test="fid">
<xsl:attribute name="id"><xsl:value-of select="cid"/>
Or from another school of thought:
<formalpara>
<xsl:apply-templates select="fid"/>
with:
<xsl:template match="fid" as="attribute(id)">
<xsl:attribute name="id" select="string(.)"/>
</>
has its own advantages too.
Regards,
--drkm
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--