forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Morandini <luca.morandi...@tin.it>
Subject Re: JSPWiki In-line images and Forrest
Date Wed, 07 May 2003 13:43:06 GMT
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
------------------------------------------



Mime
View raw message