source: vlo/trunk/vlo-vocabularies/maps/xslt/availability_transformer.xsl @ 6810

Last change on this file since 6810 was 6810, checked in by davor.ostojic@oeaw.ac.at, 9 years ago
  • Property svn:mime-type set to text/plain
File size: 791 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="AvailabilityMap">
5                <mappings>             
6                        <xsl:attribute name="field">availability</xsl:attribute>
7                        <xsl:for-each select="Availability">                           
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="License">
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.