1 message in com.googlegroups.google-enterprise-developerOneBox Newbie
FromSent OnAttachments
gon22200006 Oct 2007 07:32 
Subject:OneBox Newbie
From:gon222000 (g.@millic.com.ar)
Date:10/06/2007 07:32:08 AM
List:com.googlegroups.google-enterprise-developer

Hi everybody.

I'm just getting into the fascinating world of OneBox implementation, but I have some newbie-problems that won't let me sleep.

I have reed all the tutorials, but I just can get some stuff. First, I know that there are two types of OneBoxes, internal and external. What I need right now is to get working an internal one.

Here's the situation: I have a collection, which is a directory in the network that has inside narrations of Edgar Allan Poe (I'm just doing this as an example, for my first OneBox), in 3 formats, PDF, DOC and TXT. The collection is working great, so I want to make a nice OneBox for it.

The problem is not the OneBox definition, but the stylesheet of the results. So, I have this code for the OneBox:

<?xml version="1.0" encoding="UTF-8"?>

<onebox xmlns:xsl="http://www.w3.org/1999/XSL/Transform" id="Poe- OneBox2" suppressDateTime="false" suppressIPAddr="false" suppressKeyword="true" type="internal">

<name>Poe-OneBox2</name>

<security userAuth="none"/>

<description>Modulo para Poe-OneBox</description>

<trigger triggerType="keyword">poe|edgar|alan</trigger>

<collection>Poe</collection>

<resultsTemplate>

TROUBLE CODE HERE

</resultsTemplate>

</onebox>

So, my problem is just de XSLT for the display. I want to format the text, and have a Poe's picture in the upper left corner, but I can't get it right.

As I saw in some samples, the code for the image, is something like:

<img width="40" height="40"> <xsl:attribute name="src"><xsl:value-of select="IMAGE_SOURCE"/></xsl:attribute> </img>

But, I understand that the stylesheet ONLY formats the output, what I do not know is where to put the data. So, I need how to take this line and put an URL with the image I want (I've tried, but fail again and again).

And, I need how to tell the appliance how to display the data.

Hope you can help me. Sorry about my english and for this very-newbie question-

Thanks!

Gon.