Hi,
cmyk() is not an XSLT function, it is a FOP extension for XSL-FO (see [1]).
In your snippet, you should use it as this:
<xsl:param name="darkbackgroundcolor">cmyk(0.0, 0.564, 0.529, 0.325)</xsl:param>

[1] http://xmlgraphics.apache.org/fop/1.0/extensions.html#color-function-cmyk

2012/8/27 Rob Sargent <rsarg...@xmission.com>:
> Does anyone have at hand (a link to) an example of using the cmyk()
> function.  All I get is "Could not find function: cmyk". Who supplies this
> function?
>
> Running from cli  ~/tools/fop/fop-1.1rc1/fop -xml doc-1.xml -xsl
> /d3/support/config/stylesheet/prose.xsl -foout cmyk.fo
>
> with this (attempted) call in my stylesheet:
> <xsl:param name="darkbackgroundcolor">
>   <xsl:value-of select="cmyk(0.0, 0.564, 0.529, 0.325)"/>
> </xsl:param>
>
> with this CLASSPATH
> $HOME/tools/fop/fop-1.1rc1/lib/xmlgraphics-commons-1.5rc1.jar:\
> $HOME/tools/fop/fop-1.1rc1/lib/xml-apis-ext-1.3.04.jar:\
> $HOME/tools/fop/fop-1.1rc1/lib/xml-apis-1.3.04.jar:\
> $HOME/tools/fop/fop-1.1rc1/lib/xercesImpl-2.7.1.jar:\
> $HOME/tools/fop/fop-1.1rc1/lib/xalan-2.7.0.jar:\
> $HOME/tools/fop/fop-1.1rc1/lib/servlet-2.2.jar:\
> $HOME/tools/fop/fop-1.1rc1/lib/serializer-2.7.0.jar:\
> $HOME/tools/fop/fop-1.1rc1/lib/commons-logging-1.0.4.jar:\
> $HOME/tools/fop/fop-1.1rc1/lib/commons-io-1.3.1.jar:\
> $HOME/tools/fop/fop-1.1rc1/lib/batik-all-1.7.jar:\
> $HOME/tools/fop/fop-1.1rc1/lib/avalon-framework-4.2.0.jar:\
> $HOME/tools/fop/fop-1.1rc1/build/fop.jar:\
> $HOME/tools/fop/fop-1.1rc1/build/fop-sandbox.jar:\
> $HOME/tools/fop/fop-1.1rc1/build/fop-hyph.jar:\
> $HOME/.m2/repository/com/amirsys/book-printing/book-printing-core/1.0.45-SNAPSHOT/book-printing-core-1.0.45-SNAPSHOT.jar:\
> $APPDIR/plugins/com.amirsys.utilities_4.9.0/lib/jaxen.jar:\
> $APPDIR/plugins/com.amirsys.utilities_4.9.0/lib/jdom.jar:\
> $APPDIR/plugins/com.amirsys.utilities_4.9.0/lib/log4j.jar:\
> $APPDIR/plugins/com.amirsys.utilities_4.9.0/lib/acres-legacy.jar:\
> $APPDIR/plugins/com.amirsys.console_4.9.0/fop/fop100/fop/lib/fop-hyph.jar:\
> $APPDIR/plugins/com.amirsys.console_4.9.0/console.jar

-- 
pascal

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to