using an xslt with tamino

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

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

Stuart Fyffe-Collins
Software AG (UK) Ltd.

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

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.

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)

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

and the thirst…
Copie_de_fich_ouv.xslt (1.92 KB)

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.

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)

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.

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

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

please…

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

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