IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  can't get pictures out of Tamino

    Posted Thu October 31, 2002 02:37 PM

    Hi!

    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”/>

    </xsl:attribute>


    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??


    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: can't get pictures out of Tamino

    Posted Fri November 01, 2002 11:38 AM

    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:

    xmlns:xsl=“http://www.w3.org/1999/XSL/Transform"<BR>xmlns:xql=“http://www.metalab.unc.edu/xql/”<BR>xmlns:ino="http://namespaces.softwareag.com/tamino/response2

    HTH

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


    #API-Management
    #Tamino
    #webMethods


  • 3.  RE: can't get pictures out of Tamino

    Posted Fri November 01, 2002 02:37 PM

    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)


    #API-Management
    #Tamino
    #webMethods


  • 4.  RE: can't get pictures out of Tamino

    Posted Fri November 01, 2002 02:47 PM

    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…


    #webMethods
    #API-Management
    #Tamino


  • 5.  RE: can't get pictures out of Tamino

    Posted Fri November 01, 2002 04:29 PM

    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?

    Thanks.


    #webMethods
    #API-Management
    #Tamino


  • 6.  RE: can't get pictures out of Tamino

    Posted Sun November 03, 2002 02:29 PM

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


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


    #webMethods
    #API-Management
    #Tamino


  • 7.  RE: can't get pictures out of Tamino

    Posted Mon November 04, 2002 10:07 AM

    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.]


    #webMethods
    #Tamino
    #API-Management


  • 8.  RE: can't get pictures out of Tamino

    Posted Tue November 05, 2002 12:17 PM

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

    But thank you very much!!


    #API-Management
    #webMethods
    #Tamino