<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:template match="/">
		<xsl:apply-templates select="root/path"/>
	</xsl:template>

	<xsl:template match="path">
		<xsl:variable name="xy" select="substring-after(substring-before(@d, 'L'), 'M')"/>
		<xsl:variable name="x" select="substring-before($xy, ' ')"/>
		<xsl:variable name="y" select="substring-after($xy, ' ')"/>
		<text x="{$x}" y="{$y}">
			<xsl:value-of select="preceding-sibling::CADConverterDwgEntity[1]/Text/text()"/>
		</text>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="x_y.xml" userelativepaths="yes" externalpreview="no" url="x_y.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"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->