Re: Finally - sane NEWS information!



On Thu, Feb 19, 2004 at 09:54:35PM +0000, Dave Malcolm wrote:
> On Thu, 2004-02-19 at 10:33, Daniel Veillard wrote:
> > On Thu, Feb 19, 2004 at 06:02:47PM +1100, Jeff Waugh wrote:
> > > <quote who="Mark McLoughlin">
> > > 
> > > > Right, so I assume you must have some heuristic to figure the format of
> > > > the NEWS entry so you can pull only the latest one. Just so we have an
> > > > idea of how not to break it terribly, what is it ? :-)
> > > 
> > > It's absolutely stupid, but surprisingly robust:
> > > 
> > >   diff -u OLDS NEWS | sed '1,/@@/d;/@@/,//d;/^[^+]/d;s/^+//'
> > > 
> > > I have no idea why I didn't think of it earlier. ;-)
> > 
> >   Hum, I actually generate libxml2 and libxslt NEWS files (yes
> > with XSLT of course) so even if coercing everybody into writing
> > similar NEWS is not possible, do you have any sort of guidelines ?
> 
> Are you using a DTD of some kind?  IIRC Apache Forrest has a DTD for a
> ChangeLog XML format with tags for Release, Change, Date, Person, etc.

  Nahh converted from some HTML. a DTD is overkill IMHO.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]