Subject: RE: [xsl] concat - node set or a string From: "Markus Hanel" <markus.hanel@xxxxxx> Date: Fri, 5 Mar 2004 11:48:13 +0100 (MET) |
Thank you, thats the solution of my problem! markus > concat() creates a string. You seem to be using it to construct an XPath > expression. You won't get a node-set unless you evaluate this XPath > expression, which you aren't even attempting to do. > > Standard XSLT doesn't allow you to evaluate an XPath expression > constructed > dynamically as a string, but some products have an extension > (xx:evaluate()) > that permits it. > > But I don't think you need dynamic evaluation here. You can use the > standard > technique: > > Select="$self_quirxi/globals/pers_datas/pers_data/*[name()=$qadmin_table]" > > Michael Kay > > # -----Original Message----- > # From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl- > # list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Markus Hanel > # Sent: 05 March 2004 07:21 > # To: xsl mailinglist > # Subject: [xsl] concat - node set or a string > # > # I would like to write a node set that allows me to automatically show > the > # elements of a pers data. > # Therefore I defined 2 variables: self_quirxi and qadmin_table > # ... > # <xsl:variable name="self_quirxi" > # select="document('/qxml/quirxi.xml')/quirxi" /> > # ... > # <xsl:variable name="qadmin_table" select="." /> selects surname, > # lastname,... > # > # Here I want to give out the node set, but it is only a string! > # <xsl:value-of > # > select="concat($self_quirxi,'/globals/pers_datas/pers_data/',$qadmin_table > # )" /> > # > # Where is the bug? > # markus > # > # > # XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] concat - node set or a st, Michael Kay | Thread | Re: [xsl] concat - node set or a st, David Carlisle |
Re: [xsl] concat - node set or a st, David Carlisle | Date | RE: [xsl] reccursive sum ?, David . Pawson |
Month |