</точки>
<?xml version="1.0" encoding="windows-1251"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/2000/svg">
<xsl:output
indent="yes"
doctype-public="-//W3C//DTD SVG 1.0//EN"
doctype-system="http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"/>
<xsl:template match="/">
<svg width="200" height="200">
<desc>Simple line-based figure</desc>
<xsl:apply-templates select="точки"/>
</svg>
</xsl:template>
<xsl:template match="точки">
<g style="stroke:black; stroke-width:2">
<xsl:apply-templates select="точка"/>
</g>
</xsl:template>
<xsl:template match="точка">
<line
x1="{@x + 100}"
y1="{@y + 100}"
x2="{following-sibling::точка[1]/@x + 100}"
y2="{following-sibling::точка[1]/@y + 100}">
<xsl:if test="position() = last()">
<xsl:attribute name="x2">
<xsl:value-of