xsl-list
[Top] [All Lists]

Re: XPath Error

2004-10-31 02:40:38
> 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



<Prev in Thread] Current Thread [Next in Thread>