[Home]  [List]  [News]  [Docs]  [FAQ]  [Downloads]  [Resources]  [About]
Search :
/Home /List

list4xt : Mailing list for the XT users community.

[list4xt] Extension Function Problem

Subject: [list4xt] Extension Function Problem

User: Website

From: Linus-Lin (LLin@OfficeDepot.com)
Date: 27/04/2001 - 00:37


My xsl ran nicely with literals such as:

        <xsl:when test="function-available('phrase:get-height') and
function-available('phrase:new')">
                  <xsl:variable name="object" select="phrase:new()"/>
                   <xsl:value-of
select="string(phrase:get-height($object,'serif','normal','normal','24','thi
s is text'))"/>
        </xsl:when>

put threw an illegal argument error with this:

        <xsl:when test="function-available('phrase:get-width') and
function-available('phrase:new')">
                <xsl:variable name="object" select="phrase:new()"/>
                <xsl:value-of
select="string(phrase:get-width($object,$fontfamily,$fontstyle,$fontweight,$
fontsize,$value))"/>
        </xsl:when>

Is this due to a scope problem???
How should I fix this???

Thanks in advance.

Linus

--
Mailing list for the XT users community.     (http://peoplesbankky.com)
(mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)



Archive générée par hypermail 2b28 le 01/06/2001 - 09:01 CEST

webmaster@4xt.org