XQL Request processing

I use passthru servlet and it works fine except this little thing:

kurssitXQL Request processing

appears in the beginning and the end of the result html-file. Kurssit is the root of the xml-file. How can I get rid of that part?

This unwanted message must come from somewhere. It was either present in the query results, or it was added by the stylesheet. It wasn’t added by the passthru servlet!

Perhaps you could say what the XML query results look like, and then show the stylesheet you are using. If necessary, simplify both, which will help to isolate the problem.

Michael Kay

Ok, this is how the query result starts:

<ino:response xmlns:ino=“http://namespaces.softwareag.com/tamino/response2” xmlns:xql=“http://metalab.unc.edu/xql/”>
<ino:message ino:returnvalue=“0”>
ino:messagelineXQL Request processing</ino:messageline>

I see that there’s that ino:messageline-tag…
And at the end, there’s also one of those, so that might be it. But how can I get rid of that then? I’ll also put that stylesheet with this message.
kurssit2.xsl (2.56 KB)

To get rid of the unwanted text, try this:

<xsl:template match="/">
<xsl:apply-templates select=“ino:response/xql:result”/>

<xsl:template match=“kurssit”>

So now your stylesheet only processes the selected xql:result element, and you will ignore the text contained in the ino:response and ino:message elements (which is where the unwanted text came from).


It works now fine! Thank you!!!
Heh, sometimes you just don’t see everything…:slight_smile: