"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: >> >>> On Tue, 2009-08-18 at 03:42 -0700, Sjur N. Moshagen (JIRA) wrote: >>>> <xsl:import href="{lm:exslt-extensions}/date.add.template.xsl" /> >>> >>> the way you call it is not correct. the above should read <xsl:import >>> href="lm:/exslt-extensions/date.add.template.xsl" /> >>> >>> Since input modules are not available in xsl. >> >> Thanks for the clarification. That answers my question. > > Not fully, now that I have tested it. Here is what I get as response > from Forrest with the lm:/... style import: > > 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. Sina