in answer to the question in the subject line
<xsl:choose>
<xsl:when>...
<xsl:when>...
<xsl:otherwise>...
would seem to be what you are looking for.
and the combination can be anything as those 3 elemts are optional. I
can have many <xsl:if>s to find and get what i want.
It's not clear why you need any if test at all, what's wrong with
<xsl:apply-templates select="section,ref,ack,app"/>
which will just convert those sections and the optional elements igf
they are there and not if they are not?
Also, i need to count Total num of pages. Is there any expr like
Total pages = <xsl:value of select"count(//section) + if(ref) add 1 +
if (ack) add 1 + if(app) add 1"/>
select="count(//section,ref,ack,app)"
or in xslt1
select="count(//section|ref|ack|app)"
David
--~------------------------------------------------------------------
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>
--~--