[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] How to specify a path to a node in a nodeset using a variable
Subject: RE: [xsl] How to specify a path to a node in a nodeset using a variable From: "Shakeel Mahate" <shakeelmahate@xxxxxxxxxxx> Date: Tue, 13 Mar 2001 18:20:16 -0700 |
From: "Michael Kay" <mhkay@xxxxxxxxxxxx> >The suggestion was not to concatenate $container and $path, it was to >concatenate '$container/' and $path, that is to construct a string >consisting of the string '$container/' followed by (the value of $path >converted to a string); the resulting string will contain an XPath >expression which the evaluate() function then evaluates. I tried it and it works!!! But it is a mystery what exactly is saxon:evaluate() doing? It receives the following argument $container//account/person/@name because of the concat function. concat('$container/', $path) where $path is /account/person/@name Is $container//account/person/@name a valid XPath expression? I tried looking up the documentation for the saxon:evaluate and xalan:evaluate() but I couldnt answer the question. Do I need an extra slash between $container and the $path? -Shakeel XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to specify a path to , Michael Kay | Thread | Re: [xsl] How to specify a path to , Jeni Tennison |
[xsl] Is there a way to output & ap, Allen Chang | Date | [xsl] Resend: Is there a way ..., Allen Chang |
Month |
Keywords