CVs and XML

Raymond Yee asks another good question:

As I was updating my list my presentations and papers, I started wondering whether there is some XML format I could use to present the information I have in the document. I couldn’t find anything I would end up using at this time…

Given that neither of these specifications seem to do what I wanted, I started pondering the use of MODS…

I’ve thought the same.

Since I’ve managed to convert my syllabi (almost) to XML/XSLT, the CV was the obvious next step, and Raymond’s post pushed me to action. To wit, I’ve created two RELAX NG schemas: one called “cv”, and the other “contacts.” The schema allows you to use MODS data directly in the publications and presentations sections, but having them as external links seems a better idea. Among other things, it allows use of other metadata models.

I’ll post the schemas – and later the XSLT files – when I find time to “finish” them.

Anyone know how to get an XSLT processor to handle data from external online records?

Anyway, here’s a simple example…

<cv dateCreated="2004-01-27">
  <person linkend="darcusb" base="http://www.users.muohio.edu/darcusb/contacts"/>
  <education>
    <degree type="PhD">
      <organization>
        <name>Syracuse University</name>
      </organization>
      <years>
        <start>1997</start>
        <end>2001</end>
      </years>
    </degree>
    <degree type="MA">
      <organization>
        <name>University of Colorado</name>
      </organization>
      <years>
        <start>1995</start>
        <end>1997</end>
      </years>
    </degree>
  </education>
  <publications base="http://www.users.muohio.edu/darcusb/pubs">
    <publication linkend="pb-bd-2004a"/>
    <publication linkend="pb-bd-2003a"/>
    <publication linkend="pb-bd-2003b"/>
    <publication linkend="pb-bd-2000a"/>
  </publications>
  <presentations base="http://www.users.muohio.edu/darcusb/pres">
    <presentation linkend="pr-bd-2003a"/>
    <presentation linkend="pr-bd-2002a"/>
    <presentation linkend="pr-bd-2001a"/>
    <presentation linkend="pr-bd-2000a"/>
  </presentations>
</cv>

3 Comments

  1. Ed Summers says:

    Anyone know how to get an XSLT processor to handle data from external online records?

    Most XSLT processors will let you call out to a programming language. XALAN for example has XSLTC for callouts to Java; and AxKit has similar functionality for callouts to Perl.

  2. Bruce says:

    Thanks Ed. I should have been more clear. I just want to run an XSLT on a document where the template says “grab the record with ID X, at url Y.” If I try to import an online URL (as opposed to a local file) into a stylesheet, I get an error. Hence the question.

  3. Notelets for 2004.01.29 It’s been a busy two days and I’ve not had much time and energy to blog.


Creative Commons License Creative Commons License