Bingo. I was completely off-base in thinking it was an xslt function. Your suggestion works like a charm. This helps clean up local colour-guessing a lot.

THANKS,

rjs


On 08/27/2012 09:39 AM, Sergiu Dumitriu wrote:
On 08/27/2012 11:09 AM, Rob Sargent wrote:
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>

Definitely not XSLT. The way you wrote this, it's not FOP that fails to find the function, but the XSLT engine that transforms XML into FO. Try something like:

<xsl:param name="darkbackgroundcolor">
   <xsl:text>cmyk(0.0, 0.564, 0.529, 0.325)</xsl:text>
</xsl:param>




---------------------------------------------------------------------
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