From 28a9b19fbd172a50ab2f8257cb9d7764381b41c7 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Thu, 23 May 2002 12:58:32 +0000 Subject: [PATCH] Support for SVG in HTML --- xsl/common/common.xsl | 2 + xsl/fo/param.ent | 1 + xsl/fo/param.xweb | 2 + xsl/html/graphics.xsl | 283 ++++++++++++++++++++++++++--------------- xsl/html/param.ent | 1 + xsl/html/param.xweb | 2 + xsl/params/use.svg.xml | 25 ++++ 7 files changed, 212 insertions(+), 104 deletions(-) create mode 100644 xsl/params/use.svg.xml diff --git a/xsl/common/common.xsl b/xsl/common/common.xsl index c1d08ef6c..24598de79 100644 --- a/xsl/common/common.xsl +++ b/xsl/common/common.xsl @@ -887,6 +887,8 @@ object is recognized as a graphic. + 1 1 1 0 diff --git a/xsl/fo/param.ent b/xsl/fo/param.ent index 50cc99983..4cadd7930 100644 --- a/xsl/fo/param.ent +++ b/xsl/fo/param.ent @@ -130,6 +130,7 @@ + diff --git a/xsl/fo/param.xweb b/xsl/fo/param.xweb index 4f6294c08..f7cd65f80 100644 --- a/xsl/fo/param.xweb +++ b/xsl/fo/param.xweb @@ -190,6 +190,7 @@ generate.section.toc.level; &ulink.hyphenate; &shade.verbatim; &shade.verbatim.style; +&use.svg; Pagination and General Styles @@ -501,6 +502,7 @@ around all these parameters. + diff --git a/xsl/html/graphics.xsl b/xsl/html/graphics.xsl index fa1f1eb34..0a6e8a162 100644 --- a/xsl/html/graphics.xsl +++ b/xsl/html/graphics.xsl @@ -32,7 +32,8 @@ - - --> - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -581,6 +529,115 @@ valign: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -683,7 +740,15 @@ valign: - + + + + + + + + @@ -926,4 +991,14 @@ valign: + + + + + + + + + + diff --git a/xsl/html/param.ent b/xsl/html/param.ent index 50d6916ec..0112fbc34 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -152,4 +152,5 @@ + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index 1fe242550..7148c8a44 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -219,6 +219,7 @@ to be incomplete. Don't forget to read the source, too :-) &tex.math.delims; &pixels.per.inch; &points.per.em; +&use.svg; Chunking @@ -460,6 +461,7 @@ around all these parameters. + diff --git a/xsl/params/use.svg.xml b/xsl/params/use.svg.xml new file mode 100644 index 000000000..041d1addc --- /dev/null +++ b/xsl/params/use.svg.xml @@ -0,0 +1,25 @@ + + +use.svg +boolean + + +use.svg +Allow SVG in the result tree? + + + + + + + + +Description + +If non-zero, SVG will be considered an acceptable image format. SVG +is passed through to the result tree, so correct rendering of the resulting +diagram depends on the formatter (FO processor or web browser) that is used +to process the output from the stylesheet. + + + -- 2.50.1