[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: concat - node set or a string

Subject: RE: concat - node set or a string
From: "Markus Hanel" <markus.hanel@xxxxxx>
Date: Fri, 5 Mar 2004 11:48:13 +0100 (MET)
xslt concat node set
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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.