xsl-list
[Top] [All Lists]

select="if (subelement) then subelement else 'string'"

2005-02-02 17:23:45
Currently I call a template with this parameter:

    <xsl:with-param name="page-count"
       select="if (pages) then pages else '0'"/>

Is there a simpler or more efficient way to provide '0' when the
pages subelement isn't present (or 0, since the template outputs
it via xsl:value-of)?

Thanks,
-- 
Kevin Rodgers


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