XSLT: check existence of a variable

Discussion in 'XML' started by Thomas Scheffler, Sep 17, 2003.

  1. 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
     
    Thomas Scheffler, Sep 17, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Leon
    Replies:
    1
    Views:
    432
    John Timney \(Microsoft MVP\)
    Oct 18, 2003
  2. TaeHo Yoo
    Replies:
    3
    Views:
    5,957
    John Timney \(Microsoft MVP\)
    Oct 20, 2003
  3. CK
    Replies:
    5
    Views:
    24,108
    Lars-Inge T√łnnessen \(VJ# MVP\)
    Mar 21, 2006
  4. Replies:
    3
    Views:
    2,941
    Gordon Beaton
    Apr 17, 2006
  5. usenet only_tech_talk

    check for existence of static member variable

    usenet only_tech_talk, Mar 6, 2010, in forum: C++
    Replies:
    1
    Views:
    559
    usenet only_tech_talk
    Mar 6, 2010
Loading...

Share This Page