Table of Contents
This chapter describes the top-level elements of the HR-XML Resume specification. It provides at least one example, along with the corresponding HR-XSL output, for each element. Links to the full HR-XML documentation are also provided.
Note that all of the example output is the plain text version. Other versions will look slightly different, primarily in the use of bold and italic fonts.
The ContactInfo
element is simply a container for two other elements: PersonName
and ContactMethod
.
PersonName
describes, as you might expect, a person's name.
<PersonName> <GivenName>John</GivenName> <FamilyName>Smith</FamilyName> <Affix type="formOfAddress">Major</Affix> </PersonName>
<PersonName> <GivenName>Maria</GivenName> <FamilyName primary="true">Garcia</FamilyName> <FamilyName primary="false" prefix="de">Silva</FamilyName> <Affix type="formOfAddress">Srta.</Affix> </PersonName>
If PreferredGivenName
is specified, it is used in place of GivenName
.
HR-XSL ignores LegalName
, AlternateScript
, and FamilyName/@primary
.
The HR-XML website has more documentation.
ContactMethod
describes a person's telephone numbers, e-mail address, website, and postal address.
<Telephone> <FormattedNumber>+1 (925) 598-5209</FormattedNumber> </Telephone> <Mobile> <InternationalCountryCode>1</InternationalCountryCode> <AreaCityCode>925</AreaCityCode> <SubscriberNumber>598-5209</SubscriberNumber> </Mobile> <Fax> <InternationalCountryCode>33</InternationalCountryCode> <AreaCityCode>1</AreaCityCode> <SubscriberNumber>40 20 50 50</SubscriberNumber> </Fax> <Pager> <InternationalCountryCode>1</InternationalCountryCode> <AreaCityCode>925</AreaCityCode> <SubscriberNumber>5985200</SubscriberNumber> <Extension>5209</Extension> </Pager> <InternetEmailAddress>webmaster@hr-xml.org</InternetEmailAddress> <InternetWebAddress>http://www.hr-xml.org</InternetWebAddress>
Telephone +1 (925) 598-5209 Fax (1) 40 20 50 50 Pager (925) 5985200 ext. 5209 Mobile (925) 598-5209 E-mail webmaster@hr-xml.org Website http://www.hr-xml.org
The telephone, e-mail, and website portions of ContactMethod
are rendered in a tabular format, with labels in the left column and the content in the right column. The e-mail and website elements are rendered as links to themselves, if the output format supports it (e.g., HTML and PDF).
The HR-XML website has more documentation.
<PostalAddress> <CountryCode>US</CountryCode> <PostalCode>22153</PostalCode> <Region>VA</Region> <Municipality>Springfield</Municipality> <DeliveryAddress> <PostOfficeBox>1243</PostOfficeBox> </DeliveryAddress> </PostalAddress>
<PostalAddress> <CountryCode>US</CountryCode> <PostalCode>80237 </PostalCode> <Region>CO</Region> <Municipality>Denver</Municipality> <DeliveryAddress> <AddressLine>2455 University Blvd</AddressLine> </DeliveryAddress> <Recipient> <PersonName> <FormattedName>Karen Barber</FormattedName> </PersonName> <AdditionalText>Mailstop: B1-210</AdditionalText> <OrganizationName>Market Surveyors</OrganizationName> </Recipient> </PostalAddress>
<PostalAddress> <CountryCode>US</CountryCode> <PostalCode>50493-1234</PostalCode> <Region>MN</Region> <Municipality>Minneapolis</Municipality> <DeliveryAddress> <StreetName>E Beauregard Ave.</StreetName> <BuildingNumber>4982</BuildingNumber> </DeliveryAddress> <Recipient> <PersonName> <GivenName>Santhi</GivenName> <FamilyName>Mwanza</FamilyName> </PersonName> <OrganizationName>MinnBest Corp.</OrganizationName> </Recipient> </PostalAddress>
<PostalAddress> <CountryCode>MX</CountryCode> <PostalCode>13355</PostalCode> <Municipality>Naucalpan de Juárez</Municipality> <DeliveryAddress> <AddressLine>Hacienda de Corralejo No. 5</AddressLine> <AddressLine>Bosques de Echegaray</AddressLine> </DeliveryAddress> </PostalAddress>
P.O. Box 1243 Springfield, VA 22153 United States
Mailstop: B1-210 Karen Barber Market Surveyors 2455 University Blvd Denver, CO 80237 United States
Santhi Mwanza MinnBest Corp. 4982 E Beauregard Ave. Minneapolis, MN 50493-1234 United States
Hacienda de Corralejo No. 5 Bosques de Echegaray Naucalpan de Juárez, 13355 Mexico
In the last example, note that the country code was automatically translated into the proper English name. If you need to specify an address for a country other than the U.S., simply use the appropriate two-letter ISO 3166 country code.
If you need to change the translated names, you will have to create a new translation file as described in the section called “Localized Messages”.
The HR-XML website has more documentation.