[daisy] Re: Query for pictures including the Preview-Image?
Kevin_Walsh at deichmann.com
Kevin_Walsh at deichmann.com
Thu Jul 31 14:08:06 CEST 2008
Thanks Karel,
works fine... I'll write a wiki article on it next week - I am sure,
somebody will be interested!
My style template for testing is the folloing, it'll obviously format as a
table:
+ <xsl:template match="d:searchResult[@styleHint='thumbnails']">
+ <table>
+ <xsl:for-each select="d:rows/d:row">
+ <tr>
+ <td>
+ <xsl:value-of select="d:value[1]"/><p/>
+ <xsl:value-of select="d:value[2]"/><p/>
+ <xsl:value-of select="d:value[3]"/><p/>
+ <xsl:value-of select="d:value[4]"/>
+ </td>
+ <td>
+ <a
href="{$searchResultBasePath}{@documentId}.html?branch={@branchId}&language={@languageId}"><xsl:value-of
select="d:value[1]"/></a>
+ </td>
+ <td>
+ <img
src="http://docs-entw:8888/{$searchResultBasePath}{@documentId}/version/1/part/12/data?branch={@branchId}&language={@languageId}">
+ </img>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+</xsl:template>
Note: the first <td> content is for testing only.
I still have a couple of questions on this, anyway:
Is there a way to address the select results other than <xsl:value-of
select="d:value[1]"/>?
Is the thumbnail always stored as "part/12" ?
How do I manage to query the versionId? In the above sample, the version
is hardcoded to "1" since all my other attempts failed.
is there a variable for "current machine"? The above sample has the
"http://docs-entw:8888/" hardcoded since the thumbnail did not display
without it.
Thank you,
Kevin
Kevin Walsh
IS / Benutzerservice
DEICHMANN Schuhe GmbH & CO. KG
Deichmannweg 9
45359 Essen
Tel: 0201 / 86 76 - 932
Fax: 0201 / 86 76 49 - 932
Heinrich Deichmann-Schuhe GmbH & Co. KG, Deichmannweg 9, 45359 Essen
Registergericht Essen HRA 3564, Umsatzsteueridentifikations-Nr.: DE 119663402
Persönlich haftende Gesellschafterin ist die Deichmann Verwaltungs- und
Handelsgesellschaft mbH mit Sitz in Essen, Registergericht Essen HRB 2279.
Geschäftsführer:
Dr. Heinz-Horst Deichmann * Dipl.- Kfm. Heinrich Otto Deichmann (Geschäftsführende Gesellschafter)
Martin Fischer * Bjørn Gulden (MBA) * Dipl.-Kfm. Martin Heynen * Walter Neuroth
Dipl.-Wirtsch.-Ing. Karsten Schütt * Dipl. Verwaltungswirt (FH) Wolfgang Wislsperger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cocoondev.org/pipermail/daisy/attachments/20080731/ff1ec4a6/attachment.htm
More information about the daisy
mailing list