Re: [xsl] XPath Error

Subject: Re: [xsl] XPath Error
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Sun, 31 Oct 2004 10:40:38 +0100
> Thanks for the reply. Can you let me know how to find
> out this one?

<xsl:variable name="myInfo" select="'some string'" />
 --> variable contains data type String

<xsl:variable name="myInfo" select="1" />
 --> variable contains data type Number

<xsl:variable name="myInfo" select="true()" />
 --> variable contains data type Boolean

<xsl:variable name="myInfo" select="*[not(self::blabla)]" />
 --> variable contains data type NodeSet


All following examples give a document fragment tree:


<xsl:variable name="myInfo">some string</xsl:variable>

<xsl:variable name="myInfo">1</xsl:variable>

  <xsl:variable name="myInfo">
    <xsl:value-of select="true()" /> <!-- Note: the boolean is converted to a string! -->
  </xsl:variable>

  <xsl:variable name="myInfo">
    <xsl:copy-of select="*[not[self::blabla]" />
  </xsl:variable>

(That is why I asked for the line that defines myInfo :)

Grtz,
Geert

Current Thread