[daisy] einclude vs cinclude inside other extension
Vincent Mouton
vincent at postback.be
Thu May 3 08:52:07 CDT 2007
Hello,
I have an extension that I call in some skinning xsl files through the
einclude mechanism (<einclude:include
src="cocoon://<sitename>/ext/myExtension"/>). The extension returns an HTML
blurb.
Those skinning xsl files, say the layout.xsl, are also used in some other
extensions (e.g. a search or a contact form). And of course, the above
include should be called there too.
Except, the <einclude:include> tag is rendered as such in the output html
when calling the other extensions (search, contact form).
Now, my guess is this is because it's not an external include anymore. As,
when I replace the einclude namespace with a cinclude one, the extension is
working in the extension pages, but not anywhere else in the site.
So for now, I've done a dirty hack, using the magnificent <xsl:choose>
switch, where I call the einclude or the cinclude depending on where I am (a
daisy document, or another extension).
I was wondering if there is any other way of doing this.
Cheers,
v
More information about the daisy
mailing list