|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: handling tags and PIs within a macro
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






