XML schema |
http://dd.eionet.europa.eu/GetSchema?id=TBL6592
|
---|---|
Output type | XML |
Description | Convert to RDF |
XSL file | dd6592-rdf.xsl (Last modified: 01 Aug 2010 08:31 ) |
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:dd8="http://dd.eionet.europa.eu/namespace.jsp?ns_id=8" xmlns:dd687="http://dd.eionet.europa.eu/namespace.jsp?ns_id=687" exclude-result-prefixes="dd8 dd687" xmlns:clss="http://rdfdata.eionet.europa.eu/wise/schema/" xmlns:prop="http://rdfdata.eionet.europa.eu/wise/NutrientsGW_Disagg/"> <xsl:output method="xml"/> <xsl:template match="/"> <rdf:RDF> <xsl:apply-templates/> </rdf:RDF> </xsl:template> <xsl:template match="dd8:NutrientsGW_Disagg"> <xsl:for-each select="*"> <xsl:element name="{concat('clss:',local-name(..))}"> <xsl:attribute name="rdf:ID"><xsl:value-of select="generate-id()" /></xsl:attribute> <xsl:apply-templates/> </xsl:element> </xsl:for-each> </xsl:template> <xsl:template match="dd687:GWStation_ID"> <xsl:element name="prop:forStation"> <xsl:attribute name="rdf:resource">http://rdfdata.eionet.europa.eu/wise/gwstations/<xsl:value-of select="."/></xsl:attribute> </xsl:element> <xsl:element name="{concat('prop:',local-name())}"><xsl:value-of select="."/></xsl:element> </xsl:template> <xsl:template match="*"> <xsl:element name="{concat('prop:',local-name())}"><xsl:value-of select="."/></xsl:element> </xsl:template> </xsl:stylesheet>
European Environment Agency
Kgs. Nytorv 6, DK-1050 Copenhagen K, Denmark