View stylesheet

XML schemas http://dd.sdr.edw.ro/GetSchema?id=TBL7213
Output type RDF
Description RDF
XSL file sdr-lakes-lakeshazsubst-rdf.xsl (Last modified: 18 Apr 2011 22:19 )
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" exclude-result-prefixes="dd715 dd717" 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:dd717="http://dd.sdr.edw.ro/namespace.jsp?ns_id=717" xmlns:elem="http://dd.sdr.edw.ro/tables/7213/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:HazSubstLakes_Agg/dd715:Row"/>
		</rdf:RDF>
	</xsl:template>
	<xsl:template match="dd715:HazSubstLakes_Agg/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/7213/rdf/HazSubstLakes_Agg"/><!-- 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>