This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: mismatched tags with xsl:if


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]