To the best of my knowledge, FrameMaker's XSL processor is Xalan-C (http://xml.apache.org/xalan-c/). It looks like "replace" is a Saxon extension function.
I usually do something like the following to get the result you want without using extension functions: <xsl:variable name="basename" select="substring-before($graphic_name,'.')"/> <xsl:variable name="target" select="concat($basename, '.tif')"/> Unfortunately, this approach fails if the pathname/filename contains more than one "dot" character. I believe a recursive algorithm is necessary if you want to identify the right-most occurrence of a particular character. -Alan Donald M Rinderknecht wrote: > Hi, > > I'm trying to incorporate my XSL template into one of my Frame > Applications (in 7.2), but I'm getting a processor error that I didn't > get with Saxon. > > Is there information about the XSL processor in Frame 7.2 available? > > In the case of my application, it is choking on a 'replace' command: > <xsl:attribute name="file"> <xsl:value-of select="$dirname" > /><xsl:value-of select="replace(.,'.swf','.tif')"/> </xsl:attribute> > > The error message is: "The function 'replace' was not found." > > Thanks, > Don. > -- Alan Houser, President Group Wellesley, Inc. 412-363-3481 www.groupwellesley.com
