cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: [C2] How to create a disk path from the URL ?
Date Mon, 09 Apr 2001 05:14:17 GMT
Igor Romanov wrote:
> 
> Hello cocoon-dev,
> 
>   Hello, Cocooners !!! 8))
> 
>   Can somebody please give me a hint on how can I transform
>   an URL from the "src" attribute of "img" tag to the real
>   disk path on server? Oh, yes: The action take place inside
>   the custom transformer. Some lines of code would be great ;)
> 
>   // I'm trying to implement transformer adding "width" and "height"
>   // attributes to the xhtml's "img" on the fly.
> 
>   Thanks in advance and thanks for Cocoon2, cos' it's great!
>   Can't wait to see beta!

In the setup method you usually do a:

    InputSource src = resolver.resolveEntity(null, src);
    String      systemID = src.getSystemId();

You get the external form of an URL of the src attribute in variable
systemID.

Giacomo

> 
> --
> Cheers...
> RiO                          mailto:rio@nizhny.ru
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message