Project

Profile

Help

FOCH0002: Unknown collation file

Added by Anonymous over 16 years ago

Legacy ID: #5133340 Legacy Poster: Roel Noorman (roelnoorman)

A question from a newbie: In a rather strait forward xslt transformation, i get error messages like: FOCH0002: Unknown collation file:/D:/fop/10 while i didn't mention a collation file anywhere. The name of the collation file varies (7, 10, 20 etc.) and the statement where the error is thrown also varies when i modify the template a little bit. Often it complains on a line with a min(), last() or count() function, places where i can immage that some collation happens, bit i've also seen the error on a simple selection like <xsl:variable name="listdef" select="$pardefs/*[@id=$list-id]"/> Am i doing something very wrong in the stylesheet? Could there be something wrong in my Java environment? Or is it someting in Saxon? I've been searching but couldn't find a helpful hint. Thanks, Roel


Replies (2)

RE: FOCH0002: Unknown collation file - Added by Anonymous over 16 years ago

Legacy ID: #5133382 Legacy Poster: Michael Kay (mhkay)

The most likely explanation is that you have accidently called a function like min() with two arguments. If you call min("x", "y") then you will be told that "y" is an invalid collation, because the second argument of min() is expected to be a collation name. You should write this as min(("x", "y")) (which has only one argument, that argument being a sequence of two strings). If this isn't the explanation then please be more specific: say exactly what you did and exactly how it failed.

RE: FOCH0002: Unknown collation file - Added by Anonymous over 16 years ago

Legacy ID: #5135092 Legacy Poster: Roel Noorman (roelnoorman)

Thanks Michael, Indeed, that's the case. I was doing something stupid ;-)

    (1-2/2)

    Please register to reply