Subject: RE: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Convert String to (node-s, mxmodi | Thread | RE: [xsl] Convert String to (node-s, mxmodi |
Re: [xsl] expanding !DOCTYPE tag, David Carlisle | Date | Re: [xsl] Proper way to use XSL for, Dylan Parker |
Month |