<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE mycv SYSTEM "mycv.dtd">

<mycv url="http://personales.upv.es/luileito/mycv/">

  <metadata>
    <title>John Doe's MyCV sample page</title>
    <description></description>
    <keywords></keywords>
  </metadata>

  <personal title="In a glance">

    <!-- use either absolute uri (starting with http://...) or relative path to this XML file-->
    <photo uri="docs/img/jdoe.jpg" />

    <!-- middle name is optional (do not put a final dot, since it will be added automatically) -->    
    <name first="John" middle="M" last="Doe" />
    
    <!-- the 'hidden' attribute will be discarded in vCards and hcard only -->
    <birthday year="1950" month="1" day="23" hidden="false" />

    <!-- use CDATA if you're planning to add some HTML tags inside XML nodes -->
    <occupation>
    Sample professional
    </occupation>

    <!-- use CDATA if you're planning to add some HTML tags inside XML nodes -->
    <affiliation>
      <![CDATA[
      <a href="http://www.lipsum.es/">Fictious University of LoremIpsum</a>
      ]]>
    </affiliation>
    
    <!-- address type may be DOM | INTL | POSTAL | PARCEL | HOME | WORK or any combination of these: e.g. "WORK,PARCEL,POSTAL" -->
    <address office="" extended="" street="Empty St. West, 23" city="San Francisco" region="CA" zip="28080" country="USA" type="home" />

    <!-- write phone numbers without spaces nor dashes, etc. just one after another -->
    <!-- for fax numbers just put type="fax" -->
    <!-- phone type may be HOME | WORK | VOICE or any combination of these: e.g. "WORK,VOICE" -->
    <phone prefix="+34" number="555111222" extension="123" type="work" />

    <!-- use just plain text for email; it will be ofuscated -->
    <!-- optionally you can put multiple subdomains enclosed in brackets; e.g., pp@{a,b,c}.hey.es -->
    <!-- email type may be HOME | WORK | PREF | INTERNET or any combination of these: e.g. "WORK,PREF,INTERNET" -->
    <email inbox="jdoe@mail.com" type="work" />

    <!-- for webpages optionally you can add a short description inside a "desc" attribute -->
    <!-- webpage type may be HOME | WORK | PREF | INTERNET or any combination of these: e.g. "HOME,WORK,PREF" -->
    <webpage uri="http://example.com" type="home" />
    <webpage uri="http://twitter.com/jdoe" type="work" desc="Twitter" />
    <webpage uri="http://linkedin.com/jdoe" type="work" desc="LinkedIn" />

  </personal>


  <sectiongroup title="A">

    <section level="1" title="the basics" />
    <text>
    <![CDATA[
    MyCV is an easy-to-use web-based framework to create a showcase CV.
    The main advantage is its extreme simplicity: <a href="example.xml">you only need to edit an XML file</a>.
    Since you just need to markup the structure of your CV without thinking in visual appearance artifacts, you'll end up with a robust resulting formatting.
    Although the 'base' output is XHTML code, more formats can be generated (e.g., vCard or PDF).
    ]]>
    </text>
  
    <section level="1" title="the must-have" />
    <!-- use CDATA if you're planning to add some HTML tags inside XML node! -->
    <text>
    <![CDATA[
    <p>Change theme: <a href="?theme=minimal">minimal</a>, <a href="?theme=narrow">narrow</a>, or <a href="?theme=coolcenter">coolcenter</a>.</p>
    <p>Take a look at <a href="example.xml">the source file</a>, <a href="mycv.dtd">the DTD used for validation</a>, and of course <a href="README">the README file</a>.</p>
    <p>Documentation will be available soon.</p>
    ]]>
    </text>

  </sectiongroup>

  <sectiongroup title="B">

    <section level="1" title="supported environments" />
    <text>
    <![CDATA[
    You can type your custom HTML code inside <code>&lt;text&gt;</code> nodes.
    However, there are a set of predefined environments that could make your life easier.
    ]]>
    </text>
    
    <section level="2" title="itemize (bullet list)" />
    <env type="itemize">
    First
    Second item
    Other
    </env>

    <section level="2" title="enumerate (ordered list)" />
    <env type="enumerate">
    First
    Second item
    Other
    </env>
    
    <section level="2" title="description" />
    <env type="description">
    First ## description for 1st item
    Second item ## other description
    Other ## and so on
    </env>

    <section level="2" title="tabular" />
    <env type="tabular">
    optional table caption goes here
    year      || text
    200x-200x || Ms.C. in ...
    200x-200x || Ms.C. in ...
    </env>
    
    <section level="2" title="image tests" />

    <env type="image">
    <![CDATA[
    css/external.png %% a small icon
    ]]>
    </env>
    <env type="image">
    <![CDATA[
    docs/img/fail.jpg %% caption test string with link (<a href="http://failblog.org/2008/06/05/umbrella-fail/">source</a>)
    ]]>
    </env>
    
    <section level="2" title="image with more than 1 file" />
    <env type="image">
    when there are more than 1 image, you can use a caption for all of them
    docs/img/jdoe.jpg %% img caption
    docs/img/jdoe.jpg %% other caption, that needs more text and could span more than one line of text if neccesary
    </env>
    
  </sectiongroup>

<!--
  <sectiongroup title="Test">
  
    <section level="1" title="first level heading" />
    <text>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    Mauris at eros eu ipsum interdum congue.
    </text>
    
    <section level="2" title="second level heading" />
    <text>
    Duis malesuada, diam gravida faucibus adipiscing, ipsum elit blandit magna, sit amet rutrum magna massa ac enim.
    </text>

    <section level="3" title="third level heading" />
    <text>
    Morbi fermentum neque vitae enim lacinia posuere.
    Sed vestibulum sollicitudin erat, ut placerat lacus vehicula ut.
    </text>

    <section level="4" title="fourth level heading" />
    <text>
    Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
    Pellentesque habitant morbi tristique senectus et netus.
    </text>

  </sectiongroup>
-->

  <sectiongroup title="C">
    <text>
    This framework is easily extensible in several ways:
    </text>
    <env type="enumerate">
    By adding plugins (mainly JavaScript and CSS files)
    By adding widgets (mainly PHP files)
    By extending the MyCV's (PHP) base classes
    By implementing your own code ;)
    </env>
  </sectiongroup>

  <sectiongroup title="D">
    <text>
    <![CDATA[
    Publications are in BibTeX format. 
    All .bib files are loaded and automatically parsed from the 'bib' dir. 
    You can see an example at <a href="http://personales.upv.es/luileito/web/#research">this page</a>.
    ]]>
    </text>
    <section level="1" title="publications" />
    <!-- optional publications node attributes are include="file1, ..., fileN" or exclude="..." and the useful orderby="author|title|year|type" -->
    <!-- if you choose to include/exclude files, use comma-separated values and do put the .BIB extension -->
    <!-- note: include takes precedence over exclude (both are mutually exclusive) -->
    <publications sortby="type" />

  </sectiongroup>
  
</mycv>
