View stylesheet

XML schemas http://dd.sdr.edw.ro/GetSchema?id=TBL7212
Output type RDF
Description RDF
XSL file sdr-lakes-station-rdf.xsl (Last modified: 13 Apr 2011 14:49 )
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" exclude-result-prefixes="dd715 dd716" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:dd715="http://dd.sdr.edw.ro/namespace.jsp?ns_id=715" xmlns:dd716="http://dd.sdr.edw.ro/namespace.jsp?ns_id=716" xmlns:elem="http://dd.sdr.edw.ro/tables/7212/rdf#" xmlns:cr="http://cr.eionet.europa.eu/ontologies/contreg.rdf#">
	<xsl:output method="xml"/>
	<xsl:param name="instance" select="''"/>
	<xsl:template match="/">
		<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
			<xsl:apply-templates select="dd715:StationsLakes/dd715:Row"/>
		</rdf:RDF>
	</xsl:template>
	<xsl:template match="dd715:StationsLakes/dd715:Row">
		<rdf:Description xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
			<xsl:attribute name="rdf:ID">
				<xsl:value-of select="generate-id()"/>
			</xsl:attribute>
			<rdf:type rdf:resource="http://dd.sdr.edw.ro/tables/7212/rdf/StationsLakes"/><!-- known by DD -->
			<xsl:for-each select="*">
				<xsl:element name="{concat('elem:',local-name())}">
					<xsl:value-of select="."/>
				</xsl:element>
			</xsl:for-each>
		</rdf:Description>
	</xsl:template>
</xsl:stylesheet>