Discussion Locked

XSLT question

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have an existing xslt document which has a xsl:when statement followed by an xsl:otherwise statement. Within the otherwise statement, it calls a few templates that build tables. What I want to do is tell it to create 2 tables with an optional image. I know I can do this by saying insert 2 tables or insert 2 tables and an image, but is there some way I can consolidate this and say insert 2 tables and an optional image?

1 reply

by phil_perkins_1

I'm not sure I understand your question. When you call the template to build the tables, what keeps you from making the image optional? On a very blind account of this, I would say that you could pass a parameter to your template and then check the value of your parameter: (???)

...

Does this help at all?

This discussion is closed to new replies.