Den 19. aug. 2009 kl. 09.00 skrev Sina Khakbaz Heshmati:

"Sjur Moshagen" <sju...@mac.com> said:

Den 18. aug. 2009 kl. 17.07 skrev Sjur Moshagen:

Den 18. aug. 2009 kl. 16.24 skrev Thorsten Scherler:

the way you call it is not correct. the above should read <xsl:import
href="lm:/exslt-extensions/date.add.template.xsl" />

Internal Server Error
Message: null
...
cause
unknown protocol: lm

Any idea on how to make the protocol 'known' to the xsl processor in
Cocoon?

As far as such references are concerned in XSLT stylesheets, how about using fully qualified URLs and resolve those URLs using XML Catalogs. *At least* two reasons why this is worth considering:

(1) Results in more natural XSLT stylesheets for those reading -- debugging-- the stylesheet. No-one knows what the lm: is but almost everyone knows HTTP.

(2) Most XSLT stylesheets are likely to be used in alternate environments where locationmap is not necessarily present.

This is not about using stylesheets, only about finding a way to look up a file that both is understandable by the xslt processor (from Cocoon, on which Forrest is built) and fits reasonably well within the existing forrest infrastructure.

Best regards,
Sjur