incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siegfried Goeschl <siegfried.goes...@it20one.at>
Subject Re: No local images using pdf plugin
Date Wed, 15 Oct 2008 09:50:26 GMT
Hi Christian,

this piece is simply missing from the XSLT - I checked it last week ... :-(

I'm also not too happy about the scaling of the images when you provided
the size of the image but I have no time to tinker with it for the time
being

Siegfried Goeschl

Steinebach Christian wrote:
> Hi Siegfried!
>
> Thanks a lot! Adding jspwiki.referenceStyle=absolute did it. :-)
>
> Is there a way to make the caption of the image show in the pdf?
>
>          Regards
>              Christian
>
>
>
>
>   
>> Hi Christian,
>>
>> +) the XSL param should be set from the PDF integration using the values
>>     
> >from jspwiki.properties
>   
>> +) I recently added the PDF Plugin using JSPWiki 2.8.0-beta-1 and it
>> works with wiki images (images are attached to the wiki pages)
>>
>> >From http://www.jspwiki.org/wiki/PDFPluginProblems
>>
>> jspwiki.baseURL= http://myserver:8080/wiki/
>> jspwiki.referenceStyle=absolute
>>
>> might help - at least it did the trick for me
>>
>> Cheers,
>>
>> Siegfried Goeschl
>>
>> Steinebach Christian wrote:
>>     
>>> Hi!
>>>
>>> I installed the pdfplugin and everything worked fine except that
>>> I probably found the reason, but don't know how to fix it.
>>> The file default.xsl contains the parameter
>>>
>>>  <xsl:param name="baseJSPWikiURL">http://localhost/wiki/</xsl:param>

>>>
>>>
>>> When an image address does not start with http:// 
>>> $baseJSPWikiURL is prepended (code from default.xsl)
>>>
>>> - <xsl:choose>
>>>
>>> - <xsl:when test="contains(@src, 'http://')">
>>>
>>>   <xsl:value-of select="@src" /> 
>>>
>>>   </xsl:when>
>>>
>>> - <xsl:otherwise>
>>>
>>>   <xsl:value-of select="$baseJSPWikiURL" /> 
>>>
>>>   <xsl:value-of select="@src" /> 
>>>
>>>   </xsl:otherwise>
>>>
>>>   </xsl:choose>
>>>
>>>
>>> In my case the installation is not at http://localhost/wiki
>>> and therefore a local image as in [An Image| myimage.jpg] cannot be found.
>>> If I use the complete URL, e.g. http://myhost.com/MyWiki/attach/Main/myimage.jpg
>>> it works.
>>>
>>> Is there a way to get the base url from jspwiki.properties?
>>> If not, is it possible to define a different xsl stylsheet to be used?
>>> Or do I have to change default.xsl directly in the jar file?
>>>
>>>          Thanks for any help
>>>              Christian Steinebach
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>   
>>>       
>
>
>   

Mime
View raw message