Following some of the previous postings on the passthru servlet I have got far enough to install it and have the test running correcly, but now I’m a bit stumped.
The passthru servlet is installed in /webapps/passthru and works fine since calling http://myserver:5573/passthru/servlet/test returns the expected page.
I have copied from previous postings the shema for the xsl page and loaded it into database: Moademo & collection: stylesheets
I have created a simple xsl transformation - Filename: Style1.xml
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version=“1.0” xmlns:xsl=“Extensible Stylesheet Language (XSL) Version 1.1”>
<xsl:template match=“/”>
Here are the results for your query:
<xsl:for-each select=“//ArchObj”>
</xsl:for-each>
Label: <xsl:value-of select=“@LABEL”/> | Type: <xsl:value-of select=“@TYPE”/> |
</xsl:template>
</xsl:stylesheet>
and loaded it into the collection. I know it is in place correctly because the query
http://myserver:5573/tamino/Moademo/stylesheets?_xql=//xsl:stylesheet
returns the stylesheet Style1.xsl
I have tried the stylesheet against one of my xml files with XMLSpy and I do obtain the
output that I expected, so I know that the xsl transformation works for my files.
My xml files are in Database: Moademo & Collection: moa2
However, when I use the following query:
http://myserver:5573/passthru/servlet/filter/tamino/Moademo/moa2?_xql=//ArchObj&_xslscr=http://myserver:5573/tamino/Moademo/stylesheets/xsl:stylesheet/Style1.xsl
gives me results as there was no filtering at all through the xsl that is I got the same results that I would get using
http://myserver:5573/tamino/Moademo/moa2?_xql=//ArchObj
I’m clearly missing something, and I hope that somebody can point out it to me.
Thanks in advance,
Giuli