You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Steve Holden <st...@town-index.com> on 2000/10/25 13:28:48 UTC

Looking up values

Hi, i was wondering if anyone had some ideas about a little problem i have.
I want channel web sites into the correct parts of an xml document. I will
use a parameter in the url such as a 3 number code to push them to the
correct data. So an example might be 'myPage.xml?001' that gets passed, so
when this 001 gets passed it will then lookup the corresponding String for
that value, let's say 001 = "LONDON". I can create a switch statement which
will handle this but i'm wondering if there's a native way to do this? Also
how would a put this code somewhere else as there will be 250-300 values to
look up. Any ideas will be greatly received

Thanks in advance 

Steve



FOP Question

Posted by Rob van der Zeijden <r....@tiscon.de>.
Hi,

I am using XSL FOP to generate a pdf file. This file contains an image:

<xsl:if test="//header/type = 'header2type'">
    <fo:block text-align="centered"><fo:inline-graphic
href="{header/header1type/headerimage/url}"/></fo:block>
</xsl:if>

Is it possible to get the size of the image using XSL.

Thanks.