There were a number of bugs in this area fixed around 2017-2018, see 2823,
3717, 3732, 3818, and it would require detailed digging to determine exacly
which one applies.
Michael Kay
Saxonica
> On 28 Feb 2026, at 20:42, rick@xxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> I am not able to use a different Saxon processor with Adobe FrameMaker.
>
> I modified my function to use analyze string instead of fold-left and it
works. Kurt, thank you for pointing out the <xsl:text> issues.
>
> <xsl:function name="cp:find-change-text" as="xs:string">
> <xsl:param name="text" as="xs:string"/>
> <xsl:variable name="find-change-map" as="map(xs:string, xs:string)"
> select="map{'—' : '<emdash/>',
> '–' : '<endash/>',
> '“' : '<ldquote/>',
> '”' : '<rdquote/>',
> '’' : '<rsquote/>',
> '§' : '<section/>' }"/>
> <xsl:variable name="regex" select="'(' ||
string-join(map:keys($find-change-map),'|') || ')'"/>
> <xsl:value-of>
> <xsl:analyze-string select="$text" regex="{$regex}">
>
<xsl:matching-substring>{map:get($find-change-map,.)}</xsl:matching-substring
>
>
<xsl:non-matching-substring>{.}</xsl:non-matching-substring>
> </xsl:analyze-string>
> </xsl:value-of>
> </xsl:function>
>
>
>
> On 27/02/2026 22:28, rick@xxxxxxxxxxxxxx <mailto:rick@xxxxxxxxxxxxxx>
wrote:
> I am applying a stylesheet via Oxygen using Saxon-EE 9.9.1.7 and it
processes without errors. When I run the same stylesheet in Adobe FrameMaker
using SaxonEE9-8-0-7J, I get this error:
>
> **** Component reference function anon:f_18205168#2 is already bound
>
>
> That sounds like a bug in that Saxon version. Is that version
SaxonEE9-8-0-7J integrated in FrameMaker, is there no way to update FrameMaker
and/or Saxon used in it?
>
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/612310> (by
email <>)
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/293509> (by
email <>)