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

Parameter Type problem

Subject: Parameter Type problem
From: "Fort, Karen" <Karen.Fort@xxxxxxxxxxxxxx>
Date: Fri, 25 Jan 2002 18:48:40 +0100
parameter type
Hi,

I have a problem trying to retrieve the value of one node in the schema to affect it to a parameter in the data...
In fact, the 'concat' function transforms it into a string and then I cannot turn it into the right node type...

It's a bit difficult to explain for me, so, here's the code:

<xsl:template match="z:row">
	<xsl:variable name="tmplg" select="concat('@',/xml/s:Schema/s:ElementType/s:AttributeType[@rs:name='term1.language_']/@name)"></xsl:variable>	
	<xsl:apply-templates select="@*">
		<xsl:with-param  name="language1" select="$tmplg"></xsl:with-param>
	</xsl:apply-templates>
</xsl:template>

<xsl:template match="@*">
	<xsl:param name="language1"></xsl:param>
	<xsl:choose>
		<xsl:when test="contains(/xml/s:Schema/s:ElementType/s:AttributeType[@name = name(current())]/@rs:name,'term1.baseform_')">
			<xsl:call-template name="xts-language-mapping">
				<xsl:with-param name="language" select="$language1" />
			</xsl:call-template>
		</xsl:when>

The problem is the parameter is then of string type and not node...
How can I "cast" it to a node?

I'm sure it's very simple, but I cannot find my way through this!

Thanks! 

Karen 


 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.