<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">

<!--

   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

-->
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>  

<svg xmlns="http://www.w3.org/2000/svg" 
     xmlns:xlink="http://www.w3.org/1999/xlink"
     id="body" width="450" height="500" viewBox="0 0 450 500">

   <title>Text on Path with trailing &lt;tspan></title>

   <text class="title" x="50%" y="40"
    >Text on Path with trailing &lt;tspan></text>

   <rect fill="black" stroke="black" x="30" y="50" width="390" height="20"/>
   <rect fill="white" stroke="black" x="30" y="70" width="390" height="120"/>
   <text x="40" y="64" fill="white" font-size="14"
    >Text with embedded textPath and multiple trailing tspan</text>

   <rect fill="black" stroke="black" x="30" y="195" width="390" height="20"/>
   <rect fill="white" stroke="black" x="30" y="215" width="390" height="120"/>
   <text x="40" y="209" fill="white" font-size="14"
    >textPath has startOffset="10%"</text>

   <rect fill="black" stroke="black" x="30" y="340" width="390" height="20"/>
   <rect fill="white" stroke="black" x="30" y="360" width="390" height="120"/>
   <text x="40" y="354" fill="white" font-size="14"
    >textPath with startOffset and text-anchor</text>
   <defs>
      <path id="path" style="fill:none; stroke:blue;" 
            d="M100 0 c0 -125 140 -125 140 0"/>
   </defs>

   <g transform="translate(40, 185)" >
      <use xlink:href="#path"/>      
      <text x="10" y="0" fill="black">This is simple<textPath 
          fill="crimson" xlink:href="#path" startOffset="0%"
          >text on a path<tspan fill="orange" dy="-10"
          >with nested</tspan><tspan fill="green" dy="10"
          > tspan</tspan></textPath
          > xxx <tspan fill="blue" dx="10"
          >all with </tspan> different links.</text>
  </g>


   <g transform="translate(40, 330)" >
      <use xlink:href="#path"/>      
      <text x="10" y="0" fill="black">This is simple<textPath 
          fill="crimson" xlink:href="#path" startOffset="10%"
          >text on a path<tspan fill="orange" dy="-10"
          >with nested</tspan><tspan fill="green" dy="10"
          > tspan</tspan></textPath
          > xxx <tspan fill="blue" dx="10"
          >all with </tspan> different links.</text>
  </g>

   <g transform="translate(40, 475)" >
      <use xlink:href="#path"/>      
      <text x="10" y="0" fill="black">This is simple<textPath 
          fill="crimson" xlink:href="#path" 
          startOffset="50%" text-anchor="middle"
          >text on a path<tspan fill="orange" dy="-10"
          >with nested</tspan><tspan fill="green" dy="10"
          > tspan</tspan></textPath
          > xxx <tspan fill="blue" dx="10"
          >all with </tspan> different links.</text>
  </g>
</svg>
