Subject: RE: Convert String to (node-set)
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 5 Feb 2001 17:15:25 -0000
|
> 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)
|
|