<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:g="http://www.w3.org/2000/svg"
xmlns:xl="http://www.w3.org/1999/xlink">

<xsl:output method="xml" version="1.0" encoding="iso-8859-1"
            indent="yes"
            cdata-section-elements="g:script"
            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="horoscope">
<xsl:variable name="imgRoot">http://www.astrotexte.ch/graphics</xsl:variable>
<xsl:processing-instruction name="xml-stylesheet">href="horo.css" type="text/css"</xsl:processing-instruction>
<g:svg xmlns:g="http://www.w3.org/2000/svg" xmlns:xl="http://www.w3.org/1999/xlink" width="400" height="400" onload="doOnLoad(evt);">
<g:script type="text/javascript" xl:href="horo.js"/>
<g:script type="text/javascript">
function doOnLoad(iEvent) {
  var lHoro = 
    new HoroSVG(
      [0<xsl:for-each select="./planets/*">,<xsl:value-of select="."/></xsl:for-each>],
      [0<xsl:for-each select="./houses/*">,<xsl:value-of select="."/></xsl:for-each>] );  
  lHoro.draw();    
  }
</g:script>
<g:g class="line">
<g:circle id="outer" cx="200" cy="200" r="180" />
<g:circle id="inner" cx="200" cy="200" r="150"/>
<g:circle id="center" cx="200" cy="200" r="50"/>
<g:line id="h1"/>
<g:line id="h2"/>
<g:line id="h3"/>
<g:line id="h4"/>
<g:line id="h5"/>
<g:line id="h6"/>
<g:path id="tickMarks"/>
<g:path id="signMarks"/><!-- Zeichen: Widder = &#9800;, etc. -->
<g:image id="planet1"   width="13" height="15" xl:href="{$imgRoot}/SO.gif"/>
<g:image id="planet2"   width="13" height="15" xl:href="{$imgRoot}/MO.gif"/>
<g:image id="planet3"   width="12" height="18" xl:href="{$imgRoot}/ME.gif"/>
<g:image id="planet4"   width="13" height="18" xl:href="{$imgRoot}/VE.gif"/>
<g:image id="planet5"   width="15" height="16" xl:href="{$imgRoot}/MA.gif"/>
<g:image id="planet6"   width="14" height="15" xl:href="{$imgRoot}/JU.gif"/>
<g:image id="planet7"   width="11" height="14" xl:href="{$imgRoot}/SA.gif"/>
<g:image id="planet8"   width="12" height="17" xl:href="{$imgRoot}/UR.gif"/>
<g:image id="planet9"   width="14" height="16" xl:href="{$imgRoot}/NE.gif"/>
<g:image id="planet10"  width="15" height="14" xl:href="{$imgRoot}/PL.gif"/>
<g:image id="sign1"     width="11" height="13" xl:href="{$imgRoot}/AR.gif"/>
<g:image id="sign2"     width="11" height="13" xl:href="{$imgRoot}/TA.gif"/>
<g:image id="sign3"     width="11" height="13" xl:href="{$imgRoot}/GE.gif"/>
<g:image id="sign4"     width="11" height="13" xl:href="{$imgRoot}/CN.gif"/>
<g:image id="sign5"     width="11" height="13" xl:href="{$imgRoot}/LE.gif"/>
<g:image id="sign6"     width="11" height="13" xl:href="{$imgRoot}/VI.gif"/>
<g:image id="sign7"     width="11" height="13" xl:href="{$imgRoot}/LI.gif"/>
<g:image id="sign8"     width="11" height="13" xl:href="{$imgRoot}/SC.gif"/>
<g:image id="sign9"     width="11" height="13" xl:href="{$imgRoot}/SG.gif"/>
<g:image id="sign10"    width="11" height="13" xl:href="{$imgRoot}/CP.gif"/>
<g:image id="sign11"    width="11" height="13" xl:href="{$imgRoot}/AQ.gif"/>
<g:image id="sign12"    width="11" height="13" xl:href="{$imgRoot}/PS.gif"/>
</g:g>
</g:svg>
</xsl:template>
</xsl:stylesheet>