xsl-list
[Top] [All Lists]

Re: [xsl] "Return" from a function?

2006-05-31 04:24:12

what would be the difference between

<xsl:function match="/subscriptions/item">
<xsl:if test="not(renewaldate)">
     <xsl:return />
</xsl:if>
<!-- otherwise execute the rest of the stuff below -->
</xsl:template>


and

<xsl:function match="/subscriptions/item">
<xsl:if test="renewaldate">
<!-- otherwise execute the rest of the stuff below -->
</xsl:if>
</xsl:template>

?

(also xsl:function (an XSLT2 instruction) doesn't have a match attribute,
not sure if you meant the match to be name, or xsl:function to be
xsl:template)

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>