XML Résumé Library: Address Formatting

The XML Résumé Library is an XML Document Type Definition (DTD) and Extensible Stylesheet Language (XSL) file set for declaration, B2B exchange, and presentation of résumés.

Postal addresses are formatted according to the value of the parameter address.format, which can be set either in the params.xsl file or in your Makefile.

The following show examples of the currently defined address formats.
<street> means the value of XML element <street>, if defined. <suburb | ward> means the value of XML element <suburb> if defined, otherwise the value of XML element <ward>, otherwise blank.

Standard

      <street>
      <street2>
      <suburb | ward>
      <city>, <state | province | county >  <zip | postalCode>
      <country>
    

European

      <street>
      <street2>
      <suburb | ward>
      <zip | postalCode> <city>, <state | province | county > 
      <country>
    

Italian

      <street>
      <street2>
      <postalCode> <city> (<province>)
      <country>
    

If none of these formats suit your needs, there is the option of entering your address as a single text block, in which case it will be formatted with line breaks intact. For example:

      <address>Sr. Héctor García Marizá
      Reina #35, apt. 4a, e/ Gervasio y Escobar
      Ciudad de La Habana, CP 11900
      CUBA
      </address>
      

If there are additional formats you feel should be supported, please submit a feature request, or feel free to create your own. The Italian format, because it does not attempt to be as flexible as the others, is a good example to work from.

Back to the main documentation page