RE: [greenstone-devel] A new HTML processing plugin

From Emanuel Dejanu
DateFri, 27 May 2005 08:51:54 +0300
Subject RE: [greenstone-devel] A new HTML processing plugin
In-Reply-To (4296AB3B-9010801-cs-waikato-ac-nz)
Hi Michel,

There is no problem in putting the new HTML plug-in code in HTMLPlug.
For me was more simple this way because we have change a lot the
greenstone perl code and is very hard for me to keep it in sync with
greenstone cvs. Also was more easy for me to send code to you without
sending all the changes that we have done in HTMLPlug.

If you want please include it as an option in HTMLPlug, I do
not see any technical problem.

Some changes that I think worth GSDL team attention are (that we have in our
- Multilanguage metadata (metadata.xml)


<Metadata name="Title">Default title</Metadata>
<Metadata name="Title" lang="fr">This is a french title</Metadata>
<Metadata name="Title" lang="es">This is a spanish title</Metadata>

- Section metadata (metadata.xml)

<Description><!-- This is top section metadata -->
<Section secid="1.1">
<Metadata name="AuthorIdx"

Please not that this change the metadata parameter that have a different

Best regards,

Emanuel Dejanu

-----Original Message-----
From: Michael Dewsnip []
Sent: Friday, May 27, 2005 8:08 AM
To: Emanuel Dejanu
Subject: Re: [greenstone-devel] A new HTML processing plugin

Hi Emanuel,

Thanks very much for your e-mail, and for the new plugin. The ability to
split HTML documents into sections based on the heading tags is obviously
very useful, and something that we've been trying to find the time to do for

We'd definitely like to include this in Greenstone. However I did wonder
whether this would be better as an option to the existing HTMLPlug, rather
than a new plugin (even if it does inherit from HTMLPlug). Did you
investigate this and find that the new code didn't fit well in the existing

Thanks again for your contribution!

All the best,


Emanuel Dejanu wrote:

>Maybe this will be of help also to you.
>This new plugin split an HTML document in sections using the heading
>tags (h1, h2, ..., hN).
>You can also specify aditional metadata using the comment inside
>heading tag:
><Metadata name="Example">This is the metadata value for metadata
>Full example:
><h2>1. Infections<!--gsdl-metadata
><Metadata name="AssocCtry">ken:h4329e.16;tza:h4336e.4.17</Metadata>
>The metadata "Title" will have the value "1. Infections" for this section.
>Best regards,
>Emanuel Dejanu
>greenstone-devel mailing list