|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: concat - node set or a string
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: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








