XSLT transforms Mapping from Different Metadata Standards.

Post on 30-Dec-2015

220 views 4 download

Tags:

Transcript of XSLT transforms Mapping from Different Metadata Standards.

XSLT transforms

Mapping from Different Metadata Standards

Creating ISO Metadata• Creating ISO 19115 or -2 metadata in multiple ways• From existing FGDC CSDGM Metadata• From templates• From scratch

• FGDC Metadata Guidance• http://www.fgdc.gov/metadata/geospatial-

metadata-standards

Creating ISO Metadata via Transforms• Extensible Stylesheet Language Transformations (XSLT) is an

XML-based language used for the transformation of XML documents into other XML or "human-readable" documents via stylesheets (XSL).

• The original document is not changed; rather, a new document is created based on the content of an existing one.

• It does NOT guarantee valid XML records against a particular schema!!!! (simply displays the content in a new way.)

Transforming Metadata

This is a part of the mapping for FGDC CSDGM to ISO 19115.

Comments are Best Practices or Questions

Your input here is an

xml version of a CSDGM

record.

XSLT Transformationcsdgm2iso19115.xslt

Your result is an xml instance of an ISO 19115

record.

Transforming Metadata

Transforming FGDC Metadata using XMLSpy

1. Open XMLSpy XML Editor2. Open FGDC RSE XML file named Metadata to

Transform.xml3. Select F10 or XSL/XQuery>XSL

Transformation• Select transform (RSE to ISO use fgdcrse2iso19115-2.xsl)

4. Run transformation

Clue this is FGDC RSE so must use correct transform

Transforming FGDC Metadata using <oXygen/>

1. Open <oXygen/> XML Editor2. Open FGDC RSE XML file named Metadata to

Transform.xml3. Set up transformation scenario (only needs

to be set-up for the first time)• Name the scenario such as “RSE to ISO 19115-2”• Select transform and transformation engine (RSE to ISO use

fgdcrse2iso19115-2.xsl and select Saxon-PE or EE transformers)

4. Run transformation

Transforming FGDC Metadata using MERMAid

1. From record level • select “Export” tab

2. Select ISO 19115-2• select “Produce View” button

3. New window will pop-up4. Use “Save As…” to save file5. Repeat for ISO 19110– if record contains Section 5 Entity & Attributes

1

2

3

Other Transformations• ISO to FGDC• DIF to ISO• FGDC THREDDS• netCDF to ISO• Various ISO and FGDC views• Custom transforms – (from databases to metadata standards)

Transforming Metadata

http://www.ncddc.noaa.gov/metadata-standards/metadata-xml/

XSL stylesheets

Changing the Look and Feel of the HTML view

Different Record Views

Base XML

“Get Data” view

FAQ view

HTML View

QUESTIONS?ncddcmetadata@noaa.gov