Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL nested if statements

Status
Not open for further replies.

tektipsjunkie

Programmer
Dec 2, 2009
6
US
I know I can do this::
<xsl:if test="ms:person/ms:Name/@ms:first">
<xsl:if test="ms:person/ms:Name/@ms:last">

</xsl:if>
</xsl:if>


BUT I would like to do this::

<xsl:if test="ms:person/ms:Name/@ms:first" or test="ms:person/ms:Name/@ms:last">

Is there a way to user and/or operators
 
><xsl:if test="ms:person/ms:Name/@ms:first" or test="ms:person/ms:Name/@ms:last">
[tt]
<xsl:if test="ms:person/ms:Name/@ms:first and ms:person/ms:Name/@ms:last">
<!-- etc -->
</xsl:if>
[/tt]
or
[tt]
<xsl:if test="ms:person/ms:Name/@ms:first or ms:person/ms:Name/@ms:last">
<!-- etc -->
</xsl:if>
[/tt]
etc...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top