[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSLT error: The expression does not evaluate to a node

Subject: XSLT error: The expression does not evaluate to a node-set
From: "Oliver Emrich" <krummbeersupp@xxxxxx>
Date: Tue, 22 Jul 2003 10:44:44 +0200
xslt does not equal
Hi all, 

I have the following code snippet: 


code:--------------------------------------------------------------------------------
  <xsl:template name="comparePanels">
    <!-- compare two panels of a form -->
    <xsl:param name="panels_a" />
    <xsl:param name="panels_b" />

    <xsl:if test="$panels_a | $panels_b">
      <xsl:variable name="compar">
        <xsl:call-template name="comparePanelTitle">
          <xsl:with-param name="panel_a" select="$panels_a[1]"/>
          <xsl:with-param name="panel_b" select="$panels_b[1]"/>
        </xsl:call-template>
      </xsl:variable>

      <xsl:value-of select="$compar"/>

      <xsl:choose>
        <xsl:when test="$compar='equal'">
          <xsl:element name="{name($panels_a[1])}">
            <xsl:attribute name="Title1">
              <xsl:value-of select="$panels_a[1]/@Title"/>
            </xsl:attribute>
            <xsl:attribute name="Title2">
              <xsl:value-of select="$panels_b[1]/@Title"/>
            </xsl:attribute>
            <xsl:attribute name="Result">
              <xsl:text>Labels are equal</xsl:text>
            </xsl:attribute>
          </xsl:element>
<!--
          <xsl:call-template name="comparePanels">
            <xsl:with-param name="panel_a" select="$panels_a[following-sibling::*]"/>
            <xsl:with-param name="panel_b" select="$panels_b[following-sibling::*]"/>
          </xsl:call-template>
-->
        </xsl:when>
--------------------------------------------------------------------------------

if I delete "<!--" and "-->" I get an error message (with xalan): 

code:--------------------------------------------------------------------------------
XSLT error: The expression does not evaluate to a node-set
--------------------------------------------------------------------------------

I don't understand why because the expresion is a node-set but without the first node or am I wrong?
What can I do that the program works?

Thanks in advance,

Oliver
______________________________________________________________________________
Wo gibt es den besten Spam-Schutz? Laut ComputerBild 15-03 bei
WEB.DE FreeMail - Deutschlands beste E-Mail - http://s.web.de/?mc=021122


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.