<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform"[/URL] xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance"[/URL] xmlns="[URL unfurl="true"]http://www.frontrange.com/goldmine/xmlexport"[/URL] xmlns:gm="[URL unfurl="true"]http://www.frontrange.com/goldmine/xmlexport">[/URL]
<xsl:output method="text"/>
<xsl:variable name="newline">
<xsl:text> </xsl:text>
</xsl:variable>
<xsl:template match="/">
<xsl:for-each select="gm:gmdata/gm:header/gm:gmdbdef/gm:gmdbfld[@flddbfname='CONTACT1']">
<xsl:value-of select="concat('"',@fldname,'"')"/>
<xsl:if test="position()!=last()">
<xsl:text>,</xsl:text>
</xsl:if>
</xsl:for-each>
<xsl:value-of select="$newline"/>
<xsl:for-each select="gm:gmdata/gm:accounts/gm:account">
<!--<xsl:value-of select="concat('"',@gm_recid,'",')"/>
<xsl:value-of select="concat('"',@gm_accountno,'",')"/>-->
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='ACCOUNTNO']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='ADDRESS1']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='ADDRESS2']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='ADDRESS3']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='CITY']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='COMPANY']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='CONTACT']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='COUNTRY']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='CREATEAT']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='CREATEBY']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='CREATEON']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='DEAR']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='DEPARTMENT']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='EXT1']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='EXT2']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='EXT3']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='EXT4']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='FAX']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='KEY1']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='KEY2']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='KEY3']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='KEY4']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='KEY5']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='LASTDATE']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='LASTNAME']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='LASTTIME']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='LASTUSER']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='MERGECODES']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='NOTES']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='OWNER']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='PHONE1']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='PHONE2']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='PHONE3']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='SECR']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='SOURCE']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='STATE']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='STATUS']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='TITLE']/gm:property_string,'",')"/>
<xsl:value-of select="concat('"',gm:properties/gm:property[@db_name='ZIP']/gm:property_string,'",')"/>
<xsl:value-of select="$newline"/>
</xsl:for-each>/!</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="Copy of Cal contacts.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no" ><SourceSchema srcSchemaPath="Copy of Cal contacts.xml" srcSchemaRoot="gmdata" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/></MapperInfo><MapperBlockPosition><template match="/"><block path="xsl:for-each" x="271" y="0"/><block path="xsl:for-each/xsl:value-of" x="249" y="0"/><block path="xsl:value-of" x="209" y="0"/><block path="xsl:for-each[1]" x="298" y="0"/><block path="xsl:for-each[1]/xsl:value-of" x="248" y="0"/><block path="xsl:for-each[1]/xsl:value-of[1]" x="208" y="0"/><block path="xsl:for-each[1]/xsl:value-of[2]" x="168" y="120"/><block path="xsl:for-each[1]/xsl:value-of[3]" x="289" y="40"/><block path="xsl:for-each[1]/xsl:value-of[4]" x="209" y="40"/><block path="xsl:for-each[1]/xsl:value-of[5]" x="169" y="40"/><block path="xsl:for-each[1]/xsl:value-of[6]" x="129" y="40"/><block path="xsl:for-each[1]/xsl:value-of[7]" x="89" y="40"/><block path="xsl:for-each[1]/xsl:value-of[8]" x="49" y="40"/><block path="xsl:for-each[1]/xsl:value-of[9]" x="249" y="80"/><block path="xsl:for-each[1]/xsl:value-of[10]" x="289" y="80"/><block path="xsl:for-each[1]/xsl:value-of[11]" x="209" y="80"/><block path="xsl:for-each[1]/xsl:value-of[12]" x="169" y="80"/><block path="xsl:for-each[1]/xsl:value-of[13]" x="129" y="80"/><block path="" x="89" y="80"/></template></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->