xsl-list
[Top] [All Lists]

Re: XPath Error

2004-10-31 02:57:24
Hi,

 I think you are asking this!


<xsl:variable name="myInfo">
        <xsl:copy-of select="/page/myinfo" />
</xsl:variable>

Thanks and Regards,
Dharm

--- Geert Josten <Geert(_dot_)Josten(_at_)daidalos(_dot_)nl> wrote:

 > 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



--+------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--





                
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 


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