From ab8c0d57ef097085da71455f7d48c33e44fd9b16 Mon Sep 17 00:00:00 2001 From: Bob Stayton Date: Sun, 8 Jan 2012 23:43:19 +0000 Subject: [PATCH] Refactored the 'process.image' template to create modular templates for each attribute so they can be individually customized. Also merged in support for embedded svg and mml content so they can have image attributes too. --- xsl/fo/graphics.xsl | 463 +++++++++++++++++++++++++++++--------------- xsl/fo/math.xsl | 30 --- 2 files changed, 303 insertions(+), 190 deletions(-) diff --git a/xsl/fo/graphics.xsl b/xsl/fo/graphics.xsl index 151acd27c..cc03ac13f 100644 --- a/xsl/fo/graphics.xsl +++ b/xsl/fo/graphics.xsl @@ -135,166 +135,305 @@ + + + 0 + 0 + 0 + 0 + + 1 + 1 + 0 + + + + + + 0 + 1.0 + + + + 1.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + auto + + + + + + + + + + + + + + + + auto + + + + + + auto + + + + + + + + + + auto + + + + + + + + + auto + + + + + + + + + + + + % + + scale-to-fit + auto + + + + + + + + + auto + + + + + + + + + + + + % + + scale-to-fit + auto + + + + + + + + + + before + center + after + auto + + + + - - 0 - 0 - 0 - 0 - - 1 - 1 - 0 - + - - 0 - 1.0 - - - - 1.0 - + - - - - - - - - - - - - - - + - - - - - - + + + + + + + + - - + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + - - - auto - - - - - - - - - - - - - - - - auto - - + + + - - - auto - - - - - - - - - - auto - - + + + - - - auto - - - - - - - - - - - - % - - scale-to-fit - auto - - + + + + fo:instream-foreign-object + + + fo:instream-foreign-object + + + fo:external-graphic + + + - - - auto - - - - - - - - - - - - % - - scale-to-fit - auto - - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -304,23 +443,28 @@ - + - + - + - - before - center - after - auto - + - + + + + + + + + + + + @@ -490,28 +634,27 @@ + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + diff --git a/xsl/fo/math.xsl b/xsl/fo/math.xsl index 186440a01..7894d02b1 100644 --- a/xsl/fo/math.xsl +++ b/xsl/fo/math.xsl @@ -39,36 +39,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- 2.50.1