in reply to Emacs and colour of XML tags

just a XML small comment:

I notice you use
<author_list>Noben-Trauth K., Naggert J.K., North M.A., Nishina P.M.</author_list>
won't you ever need the authors separately?

why not have:

<author_list>
   <author>Noben-Trauth K.</author>
   <author>Naggert J.K.</author>
   <author>North M.A.</author>
   <author>Nishina P.M.</author>
</author_list>

Replies are listed 'Best First'.
Re: Re: Emacs and colour of XML tags
by matth (Monk) on Jan 08, 2003 at 19:31 UTC
    Once a paper is published, authors are very rarely added or removed.

      They are rarely added or removed but the list can certainly be displayed different ways: on a single line, one name per line. If the authors are tagged separately it might also be easier to do something clever with their name like generating a google search on their name, linking them to a bibliographical DB or just to their bio's.

      Granted it looks like a simple split /\s*,\s*/ would give you the list but the risk is that if an author name one day happens to include a comma (Sergio "The Good, The Bad and the Ugly" Leone maybe ;--) then your code will fail silently.

      In the end it is a trade-off between conveniency (not tagging individual author names might make it easier for the initial typist) and power.

      For people list I have nearly always seen each name tagged though