Fixing the top posting a little bit...
> >Here's what I did, its just for the images but you could extend it to
> >anything:
> >
> >Create a new website called "images.examples.com" in your
> >httpd.conf file. Here's some snippets of my Apache2 one:
> > <VirtualHost 10.0.0.181>
> > ServerName www.example.com
> > # this all goes to cocoon, but need a docroot anyway
> > DocumentRoot /usr/local/www/data/example
> > # send all these requests to the coyote connector
> > JkMount /* cocoon
> > </VirtualHost>
> > <VirtualHost 10.0.0.181>
> > ServerName images.example.com
> > DocumentRoot /usr/local/www/data/example
> > </VirtualHost>
> >So now when a request comes in you'll have Apache handle it differently
> >for "www" vs "images"
> >
> >Its not that elegant to have references to
> >"http://static.example.com/path/to/myhelp.html" but hey, it gets the job
> >done. You can tell cocoon to throw in the "static" a href for you so it
> >wouldn't be that much work.
On Thu, Feb 13, 2003 at 06:46:52PM +0100, SAXESS - Hussayn Dabbous wrote:
> Hy,
>
> Your last comment sounds very promising.
> How could i let cocoon throw in the "static" refs ???
> Wouldn't that mean i need cocoon to find the hrefs and
> do some replacement stuff there. Or how would i do that?
> any pointers to howto, docs or so ?
My needs were pretty simple where I wanted to have some standard images
on a page so I included it in the XSLT to make the webpage. Not sure if
that's the correct way of doing it, in fact I'm a little concerned that I
might be using XSLTs in a way that they shouldn't be used:
<xsl:template match="topmiddle">
<xsl:comment> Horizontal guides </xsl:comment>
<img src="http://images.example.com/blue.gif"</img>
<br></br>
<img src="http://images.example.com/white.gif"></img>
</xsl:template>
You might be able to workup some sort of "<xsl: if text" clause to
manipulate the {link} reference to go to the static page.
Chris
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>