Den 19. aug. 2009 kl. 10.50 skrev Sjur Moshagen:

Den 19. aug. 2009 kl. 09.23 skrev Brian M Dube:

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

I've been down this path once before. There is a Jira issue
(somewhere; sorry, I'm just on the way to sleep) about rewriting the
imports. I never had success with it. I'll look for that issue and any
notes I may have.

It is in:

https://issues.apache.org/jira/browse/FOR-1000

But according to:

http://www.mail-archive.com/u...@forrest.apache.org/msg02743.html (Thorsten Scherler)

it should work. I'll continue the investigation.

It seems to be used in dispatcher, in at least the following file:

whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/ resources/stylesheets/helper/variable.helper.xsl:

<xsl:stylesheet version="1.0"
  xmlns:forrest="http://apache.org/forrest/properties/1.0";
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  <xsl:import href="lm://transform.xml.dotdots"/>
  <xsl:import href="lm://transform.xml.pathutils"/>
...

The dotdots LM string matches in one of the main locationmaps, and should resolve just fine. That is, when using dispatcher, using an lm: protocol in an xsl import seems to work just fine.

The question is then: why doesn't it work in all other cases?

Best regards,
Sjur