You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Benjamin Dixon <be...@arches.uga.edu> on 2000/11/16 00:58:28 UTC
Including plain text or HTML
This is probably a rudimentary question but I'm trying to get my cocoon
pages to load an outside HTML/text source and I can't seem to get include
and such to do the job for me. The reason is, I have a form I want to
include on all my HTML pages, which themselves are derived from XML and
database content. Is there a way to do an inclusion *inside* a template
such as this:
<xsl:template match="something>
<html_stuff>...</html_stuff>
<how_to_include href="some_Html.html">
<more_html_stuff>...</more_html_stuff>
</xsl:template>
I appreciate any advice to solve this.
Ben
Re: Including plain text or HTML
Posted by Jeff Turner <je...@socialchange.net.au>.
On Wed, 15 Nov 2000, Benjamin Dixon wrote:
>
> This is probably a rudimentary question but I'm trying to get my cocoon
> pages to load an outside HTML/text source and I can't seem to get include
> and such to do the job for me. The reason is, I have a form I want to
> include on all my HTML pages, which themselves are derived from XML and
> database content. Is there a way to do an inclusion *inside* a template
> such as this:
>
> <xsl:template match="something>
> <html_stuff>...</html_stuff>
> <how_to_include href="some_Html.html">
> <more_html_stuff>...</more_html_stuff>
> </xsl:template>
>
> I appreciate any advice to solve this.
I don't know about doing it from XSLT, but with plain XSP, you can set an
attribute:
String form = (String)request.getAttribute("net.socialchange.bob.form");
and then display it with:
<util:include-expr><util:expr>form</util:expr></util:include-expr>
--Jeff
> Ben
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>