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

RE: Convert String to (node-set)

Subject: RE: Convert String to (node-set)
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 5 Feb 2001 17:15:25 -0000
RE:  Convert String to (node-set)
> I tried using the saxon"evaluate function. However, I got an error in
> expression when I processed the XSL using Saxon 5.4. What am
> I missing?
>
> Snippet of XSL code:
>
>   <xsl:variable name="chandoc" select="document('TSInsertBER.xml')" />
>
>   <xsl:template match="/">
>     <xsl:for-each select="$node//Node_path">
>       <xsl:text>The Value retrieved from doc 2 is:
> </xsl:text><xsl:value-of
> select="saxon:evaluate($chandoc/.)" />
>     </xsl:for-each>
> </xsl:template>

Several points:
1) $chandoc/. means exactly the same as $chandoc
2) The expression you are trying to evaluate is the text contents of
document TSInsertBER.xml, which you haven't shown us
3) Whatever the result of the saxon:evaluate(), it will be exactly the same
each time round the <xsl:for-each> loop, because there's nothing inside the
loop that depends on the current node.

Mike Kay


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


Current Thread
  • Convert String to (node-set)
    • mxmodi - Fri, 2 Feb 2001 19:15:44 -0500 (EST)
      • <Possible follow-ups>
      • mxmodi - Mon, 5 Feb 2001 11:10:32 -0500 (EST)
        • Michael Kay - Mon, 5 Feb 2001 12:49:55 -0500 (EST) <=
      • mxmodi - Mon, 5 Feb 2001 15:20:55 -0500 (EST)
      • mxmodi - Tue, 6 Feb 2001 13:21:32 -0500 (EST)

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.