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
Expand all | Collapse all

using an xslt with tamino

webMethods Community Member

webMethods Community MemberMon March 17, 2003 05:00 PM

  • 1.  using an xslt with tamino

    Posted Wed March 12, 2003 04:12 PM

    thanks, stuart and trevor for your forwards ( this mistake was in tamino doc “using xslt…”)
    i d
    fich_ouv.xslt (1.92 KB)


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: using an xslt with tamino

    Posted Wed March 12, 2003 04:23 PM

    Hi there, you need to use the Tamino passthru servlet, which can be downloaded from here.

    Stuart Fyffe-Collins
    Software AG (UK) Ltd.


    #webMethods
    #Tamino
    #API-Management


  • 3.  RE: using an xslt with tamino

    Posted Wed March 12, 2003 05:04 PM

    hi stuart :o)
    but with the new web browsers like IE6 i don’t need passthru, it support xml with xsl…no?


    #API-Management
    #Tamino
    #webMethods


  • 4.  RE: using an xslt with tamino

    Posted Wed March 12, 2003 05:56 PM

    true, but what happens if a user uses Netscape? Therefore its better to perform the transformation at the backend and provide the client with the HTML.

    But to answer the question what you need is to ask Tamino to insert a xml:stylesheet PI so IE will do the styling. So you can say:

    http://localhost/tamino/mydb/collection?_xql//tamino/thexslcollection/xsl:stylesheet/fich_ouv.xsl=somequery

    where “//tamino/thexslcollection/xsl:stylesheet/fich_ouv.xsl” is relative to http://localhost.

    Hope this helps.

    Stuart Fyffe-Collins
    Software AG (UK) Ltd.


    #webMethods
    #Tamino
    #API-Management


  • 5.  RE: using an xslt with tamino

    Posted Fri March 14, 2003 10:52 AM

    thanks for your forward, it seems to be the good syntax but it’s only displaying the title “credenceweb” on IE6, my xslt was generated with altova’s stylesheet designer, i don’t know if i can ask this:o) but anyone can help me? here are the attached files the tsd the .xml and the .xslt wich are used…
    doss1.xml (677 Bytes)


    #Tamino
    #API-Management
    #webMethods


  • 6.  RE: using an xslt with tamino

    Posted Fri March 14, 2003 10:53 AM

    oups juste one attachment by message…here the second
    FDOSS.tsd (5.31 KB)


    #Tamino
    #webMethods
    #API-Management


  • 7.  RE: using an xslt with tamino

    Posted Fri March 14, 2003 10:54 AM


  • 8.  RE: using an xslt with tamino

    Posted Fri March 14, 2003 12:30 PM

    I’ve had a quick glance at the xslt and there are several issues with this. The main problem is that the stylesheet will only work againest a CRDOSS document. However the response from Tamino will have a root element of ino:response and within that will be a xql:result element and within that will be your CRDOSS element.

    You will also need to include the Tamino namespaces into the document as well, i.e
    <xsl:stylesheet version=“1.0” xmlns:xsl=“XSLT Namespace” xmlns:ino=“http://namespaces.softwareag.com/tamino/response2” xmlns:xql=“XQL FAQ (XML Query Language - Frequently Asked Questions)”>

    Hope this helps.

    Stuart Fyffe-Collins
    Software AG (UK) Ltd.


    #webMethods
    #Tamino
    #API-Management


  • 9.  RE: using an xslt with tamino

    Posted Fri March 14, 2003 04:02 PM

    hi:o)

    but must i put these elements ( ino:response and xql:result)and the namespaces in the .xsl?? i tried and it did not want to process with interactive interface…(inoxre8805)


    #Tamino
    #webMethods
    #API-Management


  • 10.  RE: using an xslt with tamino

    Posted Fri March 14, 2003 04:37 PM

    No just the namespace declarations. The stylesheet will need additional modification(s) to take into consideration that the CRDOSS is not the root element.

    Stuart Fyffe-Collins
    Software AG (UK) Ltd.


    #webMethods
    #Tamino
    #API-Management


  • 11.  RE: using an xslt with tamino

    Posted Mon March 17, 2003 11:06 AM

    Hi Yacine
    sorry I failed to find out which piece of documentation you were referring to in yor initial contribution to this thread:
    > thanks, stuart and trevor for your forwards
    > (this mistake was in tamino doc
    > “using xslt…”)"

    Question:
    - which mistake?
    - how to find that section in the Tamino docu ?

    I’d just like to fix that … :slight_smile:
    Thanks
    Uli


    #Tamino
    #API-Management
    #webMethods


  • 12.  RE: using an xslt with tamino

    Posted Mon March 17, 2003 03:25 PM

    hi ,ulrich :o)
    the error is in the " introduction into xslt" documentation of tamino server: in page 11 the stylesheet.tsd seems to be not valid cause we got “xsl:stylesheet” in the element name, according to stuart we can’t name an element like that :o)

    To come back to my problem, i understood that the stylesheed must be modified but i didn’t find yet the rights modifications!!! i tried a lot of things but…
    would i have the same problem using passthru servlets or the mix xml+xsl is done before display on the browser??


    #Tamino
    #webMethods
    #API-Management


  • 13.  RE: using an xslt with tamino

    Posted Mon March 17, 2003 05:00 PM


  • 14.  RE: using an xslt with tamino

    Posted Tue March 18, 2003 04:42 PM

    Thanks Yacine,

    the documentation issue seems to be fixed in Tamino 4.1.1.

    Regarding your XSLT problem: have to modify your stylesheet from

    <xsl:stylesheet version=“1.0” xmlns:xsl=“XSLT Namespace”>
    <xsl:template match=“/”>


    <xsl:for-each select=“CRDOSS”>
    to
    <xsl:stylesheet version=“1.0” xmlns:xsl=“XSLT Namespace”>
    <xsl:template match=“/”>


    <xsl:for-each select=“.//CRDOSS”>
    or more selectively
    <xsl:stylesheet version=“1.0” xmlns:xsl=“XSLT Namespace
    xmlns:ino=“http://namespaces.softwareag.com/tamino/response2
    xmlns:xql=“XQL FAQ (XML Query Language - Frequently Asked Questions)” >
    <xsl:template match=“/”>


    <xsl:for-each select=“ino:response/xql:result/CRDOSS”>

    Best regards
    Uli


    #API-Management
    #Tamino
    #webMethods


  • 15.  RE: using an xslt with tamino

    Posted Mon March 24, 2003 02:13 PM

    thank u ulrich it works well now…it was so simple i’m confused…i tried many things but not this…


    #webMethods
    #Tamino
    #API-Management