No.
First, AugmentTransformer deals only with href attributes,
and second, it augments the attribute to the full path of the request, e.g.
http://localhost:8080/cocoon/... and not to the path of the requested page.
In the end, I just wrote simple xsl that parses the given url and transforms
each href and src attribute paths to absolute.

If someone is interested, I can post this xsl, it is pretty simple.

----- Original Message -----
From: "Geoff Howard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 6:49 PM
Subject: Re: Loading images with relative src


Could the AugmentTransformer handle this?

Quoting Anna Afonchenko <[EMAIL PROTECTED]>:

> Hi all.
> I noticed that if I have pipeline like this:
> <map:match pattern="load">
> <map:generate src="http://xml.apache.org/cocoon"; type="html"/>
> <map:serialize type="html"/>
> </map:match>
>
> Some of the images on the page are not loaded, because they have a
relative
> rather than absolue src,
> e.g. something like src="images/pic.gif" instead of
> src="http://xml.apache.org/images/pic.gif'
>
> This also refers to href attribute, for example, for some external css,
that
> may contain a relative path too.
>
> Now my question is:
> If I want to present the page with all the information present, like
images
> and applied external stylesheets through Cocoon.
> Is there some automated way of doing this, or do I have to do this
manually,
> e.g. make an xsl that will replace each src and href attribute that
doesn't
> start with http: to be absolute by inserting the start of the path into
each
> one?
>
> I hope that I was able to explain clearly what I need.
>
> Thank you very much for help.
>
> Anna
>
>




---------------------------------------------------------------------
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]>


---------------------------------------------------------------------
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]>

Reply via email to