|
Subject: [xsl] how to capture a value returned by a template call into a variabl e From: Anthony Kong <anthony.kong@xxxxxxxxx> Date: Thu, 9 Jan 2003 14:03:43 +0800 |
Hi, all,
I have tried to search by keyword "function" or "template" into the mailing
list but there are no many enties returned in the results. So i have to
venture to ask this question in this list. If the question has appeared
before, please kindly bear with me.
I would like to modularise some common code as a function. But in XSLT 1.0
there is no function facility. My common code involved is to tranlate a DB
type into a java type. That is what i have done:
<xsl:variable name="java_type">
<xsl:call-template name="translate_type">
<xsl:with-param name="db_type" select="@jdbc-type"/>
</xsl:call-template>
</xsl:variable>
I intended (wish, actually :-) to capture the result into variable
"java_type". However it failed.
What is a better way to achieve this?
Regards,
Anthony
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How do I access the nodes, Wendell Piez | Thread | Re: [xsl] how to capture a value re, S Woodside |
| Re: [xsl] format number mask, S Woodside | Date | RE: [xsl] how to capture a value re, Edward . Middleton |
| Month |