You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Luca Morandini <lu...@tin.it> on 2003/05/07 12:51:37 UTC
JSPWiki In-line images and Forrest
I tried to inline images in a wiki page made using Forrest and
Chaperon... to no avail: do I miss something or I have to modify some
XSLT to make this happen ?
I'm using Forrest CVS (updated few days ago, actually).
BTW, could I edit JSPWiki pages stored in subdirectories ?
I tried something like: http://cranach/enwiki/Edit.jsp?page=en/project ,
which, regretfully, doesn't work (yes, there's already a subdirectory
named "en" and a file "project.txt" in it).
Regards,
------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
http://space.virgilio.it/kumora/index.html
------------------------------------------
Re: JSPWiki In-line images and Forrest
Posted by Luca Morandini <lu...@tin.it>.
Jeff Turner wrote:
> On Wed, May 07, 2003 at 12:51:37PM +0200, Luca Morandini wrote:
>
>>I tried to inline images in a wiki page made using Forrest and
>>Chaperon... to no avail: do I miss something or I have to modify some
>>XSLT to make this happen ?
>
>
> You're not missing anything. I've never tried getting images working.
FWIW... I modified wiki2document.xsl as such:
<xsl:when test="contains(., '.png') or contains(., '.gif')">
<xsl:variable name="href" select="substring(.,2,string-length(.)-2)"/>
<xsl:choose>
<xsl:when test="contains($href, 'http://')">
<icon src="{$href}"/>
</xsl:when>
<xsl:otherwise>
<icon src="resources/images/{$href}"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
Moreover, I used the first section's title for the whole document:
<title>
<xsl:value-of
select="normalize-space(st:section[position()=1]/st:title/st:textsequence)"/>
</title>
...and now my generated documents look much nicer :)
Regards,
------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
http://space.virgilio.it/kumora/index.html
------------------------------------------
Re: JSPWiki In-line images and Forrest
Posted by Jeff Turner <je...@apache.org>.
On Wed, May 07, 2003 at 12:51:37PM +0200, Luca Morandini wrote:
> I tried to inline images in a wiki page made using Forrest and
> Chaperon... to no avail: do I miss something or I have to modify some
> XSLT to make this happen ?
You're not missing anything. I've never tried getting images working.
--Jeff
> ------------------------------------------
> Luca Morandini
> GIS Consultant
> lmorandini@ieee.org
> http://space.virgilio.it/kumora/index.html
> ------------------------------------------