[xsl] test if node exists mandatory?

Subject: [xsl] test if node exists mandatory?
From: "Robert Soesemann" <rsoesemann@xxxxxxxxxxx>
Date: Thu, 8 Jul 2004 10:37:50 +0200
Hello,

short question: Do I need to test if node exists before I select it? Do
I otherwise provoce an error?

            <xsl:if test="$foo//bar">
              <xsl:copy-of select="$foo//bar"/>
            </xsl:if>

Your help is welcome.

Best regards,

R.S.

Current Thread