From: Arjen Baart Date: Thu, 26 Apr 2012 11:12:31 +0000 (+0200) Subject: Added the src attribute to the svg tag X-Git-Url: http://www.andromeda.nl/gitweb/?a=commitdiff_plain;h=30a28f0264c67f0cb8176d0fef73122bbe3a4cbd;p=xmldoc.git Added the src attribute to the svg tag This includes SVG drawings from an external file. --- diff --git a/doc/block.xml b/doc/block.xml index 4c05987..91459b6 100644 --- a/doc/block.xml +++ b/doc/block.xml @@ -239,6 +239,48 @@ The two attributes are used in either HTML or LaTeX. +
+ + + +Scalable vector graphics can be included in the document or +from an external (SVG) file. +With a src attribute, the svg element +will load the SVG drawing from an external file: + + <svg src='filter.svg'/> + + + + +When the src attribute is omitted, all available SVG +elements can be used within the XML document: + + + <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> + + + + + + + + + + + + +
+
diff --git a/doc/filter.svg b/doc/filter.svg new file mode 100644 index 0000000..43e2e41 --- /dev/null +++ b/doc/filter.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/doc/glossary.xml b/doc/glossary.xml index bf6963a..edfb5b1 100644 --- a/doc/glossary.xml +++ b/doc/glossary.xml @@ -220,6 +220,10 @@ superscript text. + + Scalable vector graphics + + Creates tabular content. diff --git a/doc/guide.xml b/doc/guide.xml index 60fa01d..0a53dc4 100644 --- a/doc/guide.xml +++ b/doc/guide.xml @@ -123,7 +123,6 @@ The content of the page element is only renedered in LaTeX output. Other XML applications
MathML -
@@ -152,20 +151,6 @@ The content of the page element is only renedered in LaTeX output. -
-SVG - - - - - - - - - - -
diff --git a/html.xsl b/html.xsl index 43841a8..155db6a 100644 --- a/html.xsl +++ b/html.xsl @@ -437,11 +437,17 @@ - -http://www.w3.org/2000/svg - - + + + + + + http://www.w3.org/2000/svg + + + - + +