I don’t know how relevant this is, but perhaps it is a helpful hint.
The error message
Failed to compile stylesheet
Error on line 1 column 161 of http://192.168.3.11/tamino/dtbook/stylesheet?_xql=/xsl:stylesheet[@ino:id="4"]:
stylesheet requires attribute: version
caught my eye, because I have had problems when trying to define schemas which use the “version” attribute. This is not supported by Tamino 4.1.1.1, so I removed it in order to define the schemas.
Perhaps you are experiencing a similar problem? Does the stylesheet work if you remove the version attribute?
You have retrieved the stylesheet from the Tamino database by means of a query. The document that has come back is the stylesheet with a Tamino wrapper. The Xalan engine (or any other XSLT processor) doesn’t understand the wrapper, and the specific symptom it is complaining about is that the outermost element doesn’t have a version attribute, which makes it an invalid stylesheet.
I’ve normally stored stylesheets in Tamino as non-XML objects, in which you don’t get the wrapper. I’m sure you can get the document without the wrapper anyway, but I’m away from my desk right now, and I’ve forgotten how it’s done.
You are all right it was the recuest that was wrong. I did use a recuest for the xslt and not a direct name on the ino:id like the @2. But I got it in the end so all good now But thanks for all the good help.