1
0
Fork 0

Add details to institutions, use them in template

- Location (city, state, and country)
- Specific school name
- Start and end dates
- Grade point average
- Nest honors in their own element
main
Ainsley Ellis 2025-06-02 20:02:11 -04:00
parent e95a3a05c3
commit 3e60ec4798
3 changed files with 65 additions and 8 deletions

View File

@ -110,6 +110,16 @@ dd {
margin-left: 1.5em; margin-left: 1.5em;
} }
#education hgroup h3 {
display: inline;
}
#education hgroup p {
float: end;
float: right;
}
#skills h3 { #skills h3 {
margin-block-start: 0.25em; margin-block-start: 0.25em;
margin-top: 0.25em; margin-top: 0.25em;

20
cv.xml
View File

@ -301,17 +301,29 @@
<education> <education>
<institution> <institution>
<name>New York University</name> <name>New York University</name>
<location>New York, NY, United States</location>
<degree> <degree>
<level>Bachelor of Fine Arts</level> <level>Bachelor of Fine Arts</level>
<concentration>Theatre</concentration> <concentration>Theatre</concentration>
<awarded>2020-12</awarded> <school>Tisch School of the Arts</school>
<distinction>Magna cum laude</distinction> <duration>
<distinction>Tisch School of the Arts Deans List</distinction> <start datetime="2017-09">September 2017</start>
<end datetime="2020-12">December 2020</end>
</duration>
<gpa>3.851</gpa>
<honors>
<item>Magna cum laude</item>
<item>Tisch School of the Arts Deans List</item>
</honors>
</degree> </degree>
<degree> <degree>
<level>Minor</level> <level>Minor</level>
<concentration>Web Programming and Applications</concentration> <concentration>Web Programming and Applications</concentration>
<awarded>2020-12</awarded> <school>Courant Institute of Mathematical Sciences</school>
<duration>
<start datetime="2018-01">January 2018</start>
<end datetime="2020-12">December 2020</end>
</duration>
</degree> </degree>
</institution> </institution>
</education> </education>

View File

@ -23,13 +23,48 @@
</xsl:template> </xsl:template>
<xsl:template name="institution"> <xsl:template name="institution">
<article> <article>
<h3><xsl:value-of select="./name/text()" /></h3> <hgroup>
<h3><xsl:value-of select="./name/text()" /></h3>
<p><xsl:value-of select="./location" /></p>
</hgroup>
<dl> <dl>
<xsl:for-each select="./degree"> <xsl:for-each select="./degree">
<dt><xsl:value-of select="./level/text()" /> in <xsl:value-of select="./concentration/text()" /></dt> <dt><xsl:value-of select="./level/text()" /> in <xsl:value-of select="./concentration/text()" /></dt>
<xsl:for-each select="./distinction"> <xsl:if test="boolean(./school)">
<dd><xsl:value-of select="./text()" /></dd> <dd>
</xsl:for-each> <xsl:text>School: </xsl:text>
<xsl:value-of select="./school/text()" />
</dd>
</xsl:if>
<dd>
<xsl:text>Attended: </xsl:text>
<time>
<xsl:attribute name="datetime">
<xsl:value-of select="./duration/starrt[@datetime]" />
</xsl:attribute>
<xsl:value-of select="./duration/start/text()" />
</time>
<xsl:text> to </xsl:text>
<time>
<xsl:attribute name="datetime">
<xsl:value-of select="./duration/end[@datetime]" />
</xsl:attribute>
<xsl:value-of select="./duration/end/text()" />
</time>
</dd>
<xsl:if test="boolean(./gpa)">
<dd>GPA: <xsl:value-of select="./gpa/text()" /></dd>
</xsl:if>
<xsl:if test="boolean(./honors)">
<dd>
<xsl:text>Honours: </xsl:text>
<xsl:for-each select="./honors/item">
<xsl:value-of select="./text()" />
<xsl:if test="not(position()=last())">, </xsl:if>
</xsl:for-each>
</dd>
</xsl:if>
</xsl:for-each> </xsl:for-each>
</dl> </dl>
</article> </article>