|
Subject: Writing an optional element From: "Nestor Boscan" <nestor.boscan@xxxxxxxxxx> Date: Mon, 5 Jul 2004 15:38:17 -0400 |
Hi
I have an XSL template that has to write an element depending on a
condition.
If Condition is true
<element>
... continue processing ...
</element>
If Condition is false
... continue processing ...
Is there a better way to do it than:
<xsl:choose>
<xsl:when test="condition">
<element>
... processing instructions ...
</element>
</xsl:when>
<xsl:otherwise>
... repeat processing instructions ...
</xsl:otherwise>
</xsl:choose>
Thanks in advance
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] group using element in tw, Pieter Reint Siegers | Thread | Re: [xsl] Writing an optional eleme, Colin Paul Adams |
| RE: [xsl] Forwarding..., Pierre | Date | Re: [xsl] Writing an optional eleme, Colin Paul Adams |
| Month |