On 13.01.2004 17:28, Mark Lundquist wrote:

Hi all,
I need to include a stylesheet using <xsl:include>, and I would very much like to be able to locate the included stylesheet relative to my Cocoon project directory. Is there a way to do that?


There is using the Cocoon protocols cocoon:/ (access two a pipeline in current sitemap using one slash or root sitemap using two slashes) or context:// (on filesystem relative to webapp context).


I thought the "cocoon:/" pseudo-protocol was only valid in the sitemap... does it work in the stylesheets, too?

As long as Cocoon's URI resolver is in use all Cocoon sources can be used. If you have a document or a stylesheet in an XML DB, it should even work using xmldb: protocol. The usage of Cocoon's URI resolver was added a long time ago. Of course there is the downside that you no longer can use these stylesheets outside of Cocoon.


Joerg


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to