can't get pictures out of Tamino


I can’t get pictures out of Tamino when the name of the picture is in attripute of XML-file like this:

then I try to append the picture from Tamino with xsl like this:

<xsl:attribute name=“src”>

<xsl:value-of select=“kuva/@polku”/>


When I make this transformation with XML SPY it works fine and the pictures are append from Tamino, but when I make this call from browser, the transformation does not get the value of that attribute to the transformed HTML-code. So it leaves -tag like that.

I use Passthru servlet.

Any ideas or help from someone??

This is probably because the xml returned from a Tamino query is wrapped in an ino:response element. So the true path to your attribute is not:
<xsl:value-of select=“kuva/@polku”/>
but probably more like:
<xsl:value-of select=“ino:response/xql:result/kuva/@polku”/>

To use the namespaces ino: and xql: you must also define them in your stylesheet:



[This message was edited by Bill Leeney on 01 Nov 2002 at 11:16.]

I have defined those namespaces, and I also get all other stuff working in that transformation, only the pictures are missing. I put the xsl-file with this message.
kurssit2.xsl (2.9 KB)

That xsl-file is slightly different than in the earlier message I posted. In that version I only have the pictures name in XML-files attribute. That ain’t working also, so…

Can you please post the schema for your xml documents (Kurssit?) and an xml instance for that document type. If you have made any recent changes to the stylesheet, please send the latest version also.

What version of the passthru servlet are you using?


I think that passthru servlet is
Here’s an instance of the doctype:

<kurssin_nimi>Rakenteinen tietoj
kurssitkuva_schema.TSD (3.79 KB)

Sorry but this works for me. The image src attribute had an embedded carriage return because it inherits the formatting of the stylesheet, so I removed the spaces and carriage returns from the stylesheet like this:

<xsl:attribute name="src">http:localhost/tamino/tjt-d69/kuvat/pic_doc/<xsl:value-of select="kuva/@polku"/></xsl:attribute>
</pre><BR>and I got this output:<BR><pre class="ip-ubbcode-code-pre">
<img src="http:localhost/tamino/tjt-d69/kuvat/pic_doc/na.jpg">

I tested it with passthru version 3111 and version 4111; same result.

[This message was edited by Bill Leeney on 04 Nov 2002 at 09:50.]

I put those documents in again and now it works for me too, strange was that…

But thank you very much!!