<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

<!--
DTD for converting a nested XML collection of Business Information 
to a RuleML collection 

This XSLT Created in 2004 by Marcel Ball,
 National Research Council of Canada, 
 updated by Anna Maclachlan February 2004.

Designed for use with data from Yahoo! Canada Business Finder scaped into CSV format, then imported into XML
-->


	<xsl:template match="Import">
		<rulebase>
			<xsl:apply-templates select="Row"/>
		</rulebase>
	</xsl:template>

	<xsl:template match="Row">
		<fact>
			<_head>
				<atom>
					<_opr><rel>YAHOO_ENT</rel></_opr>
					<xsl:apply-templates/>
				</atom>
			</_head>
		</fact>
	</xsl:template>

	<xsl:template match="@*|node()">
		<xsl:if test="name(.) != ''">
		<xsl:element name="_slot">
			<xsl:attribute name="name">
				<xsl:value-of select="name(.)"/>
			</xsl:attribute>
			<ind><xsl:value-of select="."/></ind>
		</xsl:element>
		</xsl:if>
	</xsl:template>

</xsl:stylesheet>