source: vlo/branches/vlo-3.3-oeaw/vlo-vocabularies/maps/xslt/language_transformer.xsl @ 6505

Last change on this file since 6505 was 6505, checked in by davor.ostojic@oeaw.ac.at, 9 years ago

Project for maintaining vocabulary maps.

It contains:

  1. CSV vocabularies used by curators
  2. XML vocabularies used by vlo-importer
  3. transformers between these 2 formats
  • Property svn:mime-type set to text/plain
File size: 787 bytes
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3<xsl:output omit-xml-declaration="yes" indent="yes" method="xml"/>
4        <xsl:template match="LanguageNames">
5                <mappings>             
6                        <xsl:attribute name="field">languageCode</xsl:attribute>
7                        <xsl:for-each select="Language">                               
8                                <mapping>
9                                        <normalizedValue>
10                                                <xsl:attribute name="value">
11                                                        <xsl:value-of select="@name"/>
12                                                </xsl:attribute>
13                                        </normalizedValue>                                     
14                                        <xsl:for-each select="Variation">
15                                                <variant>
16                                                        <xsl:attribute name="value">
17                                                                <xsl:value-of select="."/>
18                                                        </xsl:attribute>
19                                                </variant>                                             
20                                        </xsl:for-each>                         
21                                </mapping>                             
22                        </xsl:for-each>
23                </mappings>             
24        </xsl:template>
25</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.