[Clipart] XML hierarchy definitions
Alberto Simões
hashashin at gmail.com
Mon Sep 20 11:17:58 PDT 2004
Hmms,
This means you want to continue with the directories structure,right?
But, what to do when a file can be in more than one category? We will
duplicate it?
More, if we have a subcategory which has two parents... can this happen, right?
Cheers,
Alberto
On Mon, 20 Sep 2004 11:01:54 -0700 (PDT), Bryce Harrington
<bryce at bryceharrington.com> wrote:
> Ah, interesting - yeah you may be right that with some hacking that
> could be turned into something that'd do the job.
>
> Basically, we need to pass in an XML file or filename for it to load,
> then have it iterate through the items in the XML and create directories
> and subdirectories accordingly. As it does this, for each directory it
> should put a call to xms requesting documents to put in the
> subdirectory; I haven't created this routine yet, but it'll be something
> like:
>
> $dir = 'my_daughters_aquarium';
> %criteria = ( 'keywords:required' => ['fish','freshwater'],
> 'keywords:omit' => ['shark','cooked','nazi','profanity']
> );
>
> foreach my $doc_id ($dms->query(%criteria)) {
> $dms->checkout($dir, $doc_id);
> }
>
> Still TBD is how to specify that you want just svg's, or svg's plus
> thumbnails, or everything, or... Also, I'm iffy on the syntax for the
> %criteria, so that may change. But hopefully that gives the general
> idea.
>
> Bryce
>
>
>
> On Sun, 19 Sep 2004, [ISO-8859-1] Alberto Simões wrote:
>
> > Hi
> >
> > I have a perl module, named Biblio::Thesaurus which supports ISO-like
> > thesaurus. It is not in the syntax defined on the XML file (it doesn't
> > use XML at all) but can be converted. Probably we can use it for this
> > task.
> >
> > Hugs,
> > Alb
>
--
Alberto Simões
More information about the clipart
mailing list