This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: evaulate


What you are asking for sounds difficult. It seems you would need to
parse the string apart, determine what in it qualifies as a variable,
and then concatenate the results using variable substitution. To my
knowledge there is no existing function, but you could probably write an
extension.

Instead it would be trivial to set the script variable after you have
the title variable like this:
   <xsl:variable name="title" select="'no_title'"/>
   <xsl:variable name="script"
select="concat('sdfhskadh__',$title,'_')"/>

Jim.


Carol Lee wrote:
> 
> if i have a variable
> 
>    <xsl:variable name="title" value="no_title"/>
>     <xsl:variable name="script" value="sdfhskadh__$title_"/>
> 
> are there any evalute function that the $title is subtituted with "no_title"
> when i print out the variable "script"?
> 
> P.S. I can't use Xalan 2 or Saxon evaluate funtions.
> 
> Carol
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-- 

____________________________________________________________
James Melton                 CyLogix
609.750.5190                 609.750.5100
james.melton@cylogix.com     www.cylogix.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]