XSLT: check existence of a variable

T

Thomas Scheffler

Hi,

I have several xslt documents that import each other in a specific way
to allow resulting documents to be layout in a common way. In the
"master stylesheet" I need some kind of test to check if a variable exists.
<xsl:if test="$testvariable"> is false when the variable exists. Is
there any test that delivers "true" if the variable exists and return
"false" if not instead of an error message saying that the variable is
not defined? I hope somebody could help me on this issue.

Thank you in advance

Thomas Scheffler
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top