The Caboteria / Tech Web / MyResumeMeta (17 Dec 2009, TobyCabot)
I'd like to make TBL's Semantic Web happen, so I'm helping out in a small way: I converted my resume to XML. I'm using the dtd at http://xmlresume.sourceforge.net/ , largely because it showed up higher on Google than any other. How's that for a fancy product selection process? AndersenAccenture, eat your heart out!

To get emacs' nxml mode to validate the resume I had to convert the resume dtd to RELAX NG syntax. I used "trang":

$ java -jar bin/trang.jar -I dtd -O rnc downloads/resume-1_5_1/dtd/resume.dtd lisp/nxml-mode-20041004/schema/resume151.rnc 

I had to hack the generated output slightly: it insisted that the only valid document element was resumes when according to the DTD resume is also valid.

--- /home/tobyc/tmp/backup/!home!tobyc!lisp!nxml-mode-20041004!schema!resume151.rnc~   2009-12-17 20:20:11.000000000 -0500
+++ /home/tobyc/lisp/nxml-mode-20041004/schema/resume151.rnc   2009-12-17 20:37:48.000000000 -0500
@@ -469,4 +469,4 @@
 attlist.dayOfMonth &= attribute targets { text }?
 attlist.present &= attribute targets { text }?
 attlist.title &= attribute targets { text }?
-start = resumes | company
+start = resume | resumes | company

then add the resume type to nxml's database of schemas:

--- /home/tobyc/tmp/backup/!home!tobyc!lisp!nxml-mode-20041004!schema!schemas.xml~   2008-04-05 08:26:58.000000000 -0400
+++ /home/tobyc/lisp/nxml-mode-20041004/schema/schemas.xml   2009-12-17 21:01:34.000000000 -0500
@@ -15,6 +15,8 @@
   <namespace ns="http://thaiopensource.com/ns/locating-rules/1.0"
         uri="locate.rnc"/>
 
+  <documentElement localName="resume" typeId="resume" />
+
   <documentElement localName="stylesheet" typeId="XSLT"/>
   <documentElement prefix="xsl" localName="transform" typeId="XSLT"/>
 
@@ -32,6 +34,7 @@
 
   <documentElement localName="locatingRules" uri="locate.rnc"/>
 
+  <typeId id="resume" uri="resume151.rnc"/>
   <typeId id="XSLT" uri="xslt.rnc"/>
   <typeId id="RELAX NG" uri="relaxng.rnc"/>
   <typeId id="XHTML" uri="xhtml.rnc"/>
Edit | Attach | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Copyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria? Send feedback