nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris A. Mattmann (JIRA)" <j...@apache.org>
Subject [jira] Updated: (NUTCH-245) DTD Schemas for plugin.xml configuration files in conf directory
Date Wed, 12 Apr 2006 04:18:21 GMT
     [ http://issues.apache.org/jira/browse/NUTCH-245?page=all ]

Chris A. Mattmann updated NUTCH-245:
------------------------------------

    Attachment: NUTCH-245.Mattmann.patch.txt

Here's the patch for the plugin DTD file. I got a lot of info from:

http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/plugin_manifest.html

i.e., the eclipse manifest file. Turns out that by examining the plugin manifest parser code
though, a lot of some elements that eclipse uses we don't currently use in Nutch. Additionally,
I also noticed that the element "implementation" can basically have any attribute name/value
pair on it, besides "id" and "class", so I wasn't sure how exactly to represent this in DTD
terminology other than going through all the plugin.xml files for the nutch plugins and adding
#IMPLIED attribute names for the implementation attribute corresponding to each of the optional
attributes used by different extension point implementations. Maybe there's a more elegant
way, but, for now, this works (I ran it against all the plugin.xml files through my XML validator
and they check out).

Okay, thanks!

> DTD Schemas for plugin.xml configuration files in conf directory
> ----------------------------------------------------------------
>
>          Key: NUTCH-245
>          URL: http://issues.apache.org/jira/browse/NUTCH-245
>      Project: Nutch
>         Type: New Feature

>   Components: fetcher, indexer, ndfs, searcher, web gui
>     Versions: 0.7.2, 0.7.1, 0.7, 0.6, 0.8-dev
>  Environment: Power PC Dual Processor 2.0 Ghz, Mac OS X 10.4, although improvement is
independent of environment
>     Reporter: Chris A. Mattmann
>     Assignee: Chris A. Mattmann
>     Priority: Minor
>  Attachments: NUTCH-245.Mattmann.patch.txt
>
> Currently, the plugin.xml file does not have a DTD or XML Schema associated with it,
and most people just go look at an existing plugin's plugin.xml file to determine what are
the allowable elements, etc. There should be an explicit plugin DTD file that describes the
plugin.xml file. I'll look at the code and attach a plugin.dtd file for the Nutch conf directory
later today. This way, people can use the DTD file to automatically (using tools such as XMLSpy)
generate plugin.xml files that can then be validated. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message