Added the src attribute to the svg tag
[xmldoc.git] / doc / block.xml
index 4c05987..91459b6 100644 (file)
@@ -240,6 +240,48 @@ The two attributes are used in either HTML or LaTeX.
 </section>
 
 <section>
+<heading><label name='svg'/>Scalable Vector Graphics</heading>
+
+<para>
+Scalable vector graphics can be included in the document or
+from an external (SVG) file.
+With a <strong>src</strong> attribute, the <strong>svg</strong> element
+will load the SVG drawing from an external file:
+<example>
+   &lt;svg src='filter.svg'/&gt;
+</example>
+<svg src='filter.svg'/>
+</para>
+<para>
+When the <strong>src</strong> attribute is omitted, all available SVG
+elements can be used within the XML document:
+
+<example>
+   &lt;svg&gt;
+      &lt;clipPath id="a"&gt;
+         &lt;circle cy="90" cx="100" r="60"/&gt;
+      &lt;/clipPath&gt;
+      &lt;circle fill="#AAAAAA" cy="90" cx="190"
+                 r="60" style="clip-path:url(#a)"/&gt;
+      &lt;circle stroke="black" fill="none" cy="90" cx="100" r="60"/&gt;
+      &lt;circle stroke="blue" fill="none" cy="90" cx="190" r="60"/&gt;
+   &lt;/svg&gt;
+</example>
+<svg>
+   <clipPath id="a">
+      <circle cy="90" cx="100" r="60"/>
+   </clipPath>
+   <circle fill="#AAAAAA" cy="90" cx="190"
+              r="60" style="clip-path:url(#a)"/>
+   <circle stroke="black" fill="none" cy="90" cx="100" r="60"/>
+   <circle stroke="blue" fill="none" cy="90" cx="190" r="60"/>
+</svg>
+
+</para>
+
+</section>
+
+<section>
 <heading><label name='table'/>Tables</heading>
 <para>
 Creating tables in XMLDoc is much like creating tables in HTML.