Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

nesting xsl:choose statements

522 views
Skip to first unread message

shaun

unread,
Aug 13, 2001, 4:09:39 AM8/13/01
to
Hi all,

I've got a bit of a problem trying to nest xsl:choose statements, my
xsl is as follows :

<xsl:choose>
<xsl:when test="ULE/Data/In[number(POLICY_TERM) = 1]">
<xsl:choose>
<xsl:when test="ULE/Data/In[PREMIUM_MODE = 'MONTHLY']">
text here </xsl:when>
<xsl:otherwise>
more text here </xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="ULE/Data/In[PREMIUM_MODE = 'MONTHLY']">
some more text here
</xsl:when>
<xsl:otherwise>
some more text here
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>

When I try and transform this I get the error : End tag 'xsl:when'
does not match the start tag 'xsl:choose'.
I've looked over it and the only thing I can think of is that xsl
doesn't support nested choose statements?

Any help will be greatly appreciated.

Thanks
Shaun Bonanos

Steve Gould

unread,
Aug 13, 2001, 7:39:14 PM8/13/01
to
Bad news. I took your code, copied it in XML Spy and ran it. It ran just
fine.

Bottom line is you can nest choose stmts, as I do it all the time. I would
start with a simple choose statement and gradually add to it.

Sorry couldn't be of more help.

Steve


"shaun" <tri...@hotmail.com> wrote in message
news:2cb684e.01081...@posting.google.com...

0 new messages