Is there any way not to leave <choose> after first <when> match but continue check else conditions?
Is there any way not to leave <choose> after first <when> match but continue
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe it’s a no. As the spec says:
from: http://www.w3.org/TR/xslt#section-Conditional-Processing-with-xsl:choose
you can’t make it fall through other conditions like that. just convert it into a set of
<xsl:if>following one another if you need a fall throughUPDATE. Here’s a quote from the O’Reilly’s XSLT book ( http://docstore.mik.ua/orelly/xml/xslt/ch04_02.htm ):