This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: mismatched tags with xsl:if
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] mismatched tags with xsl:if
- From: Stephen Cunliffe <scunliffe at digitalfairway dot com>
- Date: Mon, 12 Mar 2001 12:09:33 -0500
- Organization: Digital Fairway Corporation
- References: <Pine.LNX.4.21.0103121726180.17576-100000@elara.perceval.be>
- Reply-To: xsl-list at lists dot mulberrytech dot com
What's the tag?... (or specific example)
In most cases you can close the tag inside the <if>...
<xsl:if test="foo='ToTheLeft'">
<p>Welcome to the violent playground!</p>
</xsl:if>
<xsl:if test="foo='ToTheRight'">
<p>Guess you don't know about NEP?</p>
</xsl:if>
Xavier Defrang wrote:
> Hello,
>
> I run into the following classical issue :
>
> <xsl:if test="...">
> <tag> <!-- opening tag -->
> </xsl:if>
> ...
> <xsl:if test="...">
> </tag> <!-- corresponding closing tag -->
> </xsl:if>
>
> I know I read a few times ago how to handle this
> case but I can't remember... was it related to
> xsl:text and it's escaping attribute? I don't
> know...
>
> Thanks in advance for your help.
>
> Xavier Defrang
> Perceval R&D Team
> xavier@perceval.net
>
> -------------------------------------------------
> Perceval Technologies SA/NV Tel: +32-2-6409194
> Rue Tenbosch, 9 Fax: +32-2-6403154
> B-1000 Brussels http://www.perceval.net
> BELGIUM info@perceval.net
> -------------------------------------------------
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list