[o:XML] Calling a function using a variable name

Glen Barnes barnaclebarnes at mac.com
Wed Feb 2 03:09:03 UTC 2005


I'd like to call a function based on the value of a variable:

At the moment I have this:

       <o:choose>
	<o:when test="$module='blog'">
	  <!-- Display weblog entries -->
	  <o:eval select="p:blog_default($parameters)" />
	</o:when>
	.
	.
	.
       </o:choose>

But what I would like to do is something like this:

	<o:call-function name="$module"  param=,"$parameters" />

Is this possible in o-xml?

Thanks,
Glen



More information about the o-xml mailing list