[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] conditional instruction vs. conditional expression
Subject: [xsl] conditional instruction vs. conditional expression From: Kevin Rodgers <kevin.rodgers@xxxxxxx> Date: Thu, 27 Jan 2005 08:09:54 -0700 |
What are the advantages and disadvantages of passing a string parameter via a conditional instruction (XPath 1.0): <xsl:with-param name="content"> <xsl:if test="mb3e:org_list/mb3e:org_code[@type='APPR' and text()='ANSI']"> <xsl:text>*</xsl:text> </xsl:if> </xsl:with-param> vs. via a conditional expression (XPath 2.0): <xsl:with-param name="content" select="if (mb3e:org_list/mb3e:org_code[@type='APPR' and text()='ANSI']) then '*' else ''"/> Thanks, -- Kevin Rodgers
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] using xsl:value-of but om, Michael Kay | Thread | RE: [xsl] conditional instruction v, Michael Kay |
Re: [xsl] Newbie - XML and XSLT sam, tom . kirkpatrick | Date | RE: [xsl] using xsl:value-of but om, Michael Kay |
Month |