Code Monkey home page Code Monkey logo

xslts's Introduction

XSLTs

XSL transformations used to edit metadata in preparation for ingest into a digital repository.

The metadata is edited to conform to the guidelines for depositing objects in the Digital Repository of Ireland, and according to cataloguing decisions at Dublin City Library and Archive, Ireland.

The workflow had two stages:

  1. Extract Dublin Core metadata from existing xml metadata records.
  2. Edit metadata to ensure validation against the Digital Repository of Ireland's schema (in order to enable batch ingest).

There are five documents provided:

  1. DCLASourceRecord_Example20359.xml This is a sample record in FOXML, showing all of the datastreams present in the source records. Source records were processed in bulk.

  2. DublinCoreFromFOXMLExtract.xsl Only the Dublin Core content from the source record was required for this project. This stylesheet extracts the Dublin Core content from the source record.

  3. DCLADublinCoretoDRI_Example.xsl A transformation written to copy (using xsl:for-each) some of the Dublin Core content from the source record, and add and edit other content. In this example, a template and regular expression is used to edit any record in which the content of dc:creator is dash, outputting 'Unknown' in its place.

Date information is added to each record in dcterms:created.

Transformations are written following an analysis of the available metadata for a given collection of objects.

  1. Output_DRIQDC_20359.xml A qualified Dublin Core record, valid for ingestion into DRI is output.

  2. DCLA_TemporalSpatialEdits.xsl This transformation edits the content of a dc:date element formatted as DD/MM/YYYY and outputs it to a dcterms:created element formatted as YYYY-MM-DD.

It analyses the content of dc:coverage and dc:type elements and outputs their content to dcterms:temporal, dcterms:spatial, dc:type or dc:format elements based on their content.

xslts's People

Contributors

louisekennedy avatar padraic7a avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

louisekennedy

xslts's Issues

<3

I look forward to seeing more!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.