[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Processor error
From: "rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 28 Feb 2026 20:42:31 -0000
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{'&#8212;' : '&lt;emdash/>',
            '&#8211;' : '&lt;endash/>',
            '&#8220;' : '&lt;ldquote/>',
            '&#8221;' : '&lt;rdquote/>',
            '&#8217;' : '&lt;rsquote/>',
            '&#167;'  : '&lt;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:ma
tching-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 <> )

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member