Tiny changes in docbook-xsl-newmethods.patch to work with xalan (#452867)
This commit is contained in:
parent
a6dee9c018
commit
adbe46b402
@ -1,6 +1,6 @@
|
||||
Name: docbook-style-xsl
|
||||
Version: 1.74.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Group: Applications/Text
|
||||
|
||||
Summary: Norman Walsh's XSL stylesheets for DocBook XML
|
||||
@ -117,6 +117,10 @@ if [ "$1" = 0 ]; then
|
||||
fi
|
||||
|
||||
%changelog
|
||||
* Wed Aug 06 2008 Kamil Dudka <kdudka@redhat.com> 1.74.0-2
|
||||
- Tiny changes in docbook-xsl-newmethods.patch to work with xalan
|
||||
(#452867)
|
||||
|
||||
* Tue Jun 03 2008 Ondrej Vasik <ovasik@redhat.com> 1.74.0-1
|
||||
- New upstream release 1.74.0, adapted patches
|
||||
|
||||
|
@ -20,7 +20,7 @@ diff -urNp docbook-xsl-1.72.0/html/docbook.xsl devel/html/docbook.xsl
|
||||
diff -urNp docbook-xsl-1.72.0/html/dtbl.xsl devel/html/dtbl.xsl
|
||||
--- docbook-xsl-1.72.0/html/dtbl.xsl 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ devel/html/dtbl.xsl 2007-06-18 14:00:05.000000000 +0200
|
||||
@@ -0,0 +1,292 @@
|
||||
@@ -0,0 +1,293 @@
|
||||
+<?xml version="1.0" encoding="US-ASCII"?>
|
||||
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
+ xmlns:exsl="http://exslt.org/common"
|
||||
@ -201,11 +201,12 @@ diff -urNp docbook-xsl-1.72.0/html/dtbl.xsl devel/html/dtbl.xsl
|
||||
+</xsl:template>
|
||||
+
|
||||
+<xsl:template match="col" mode="dtbl-correct-rounding-error">
|
||||
+ <xsl:param name="relative.widths.total"/>
|
||||
+ <xsl:param name="error"/>
|
||||
+
|
||||
+ <xsl:element name="col">
|
||||
+ <xsl:attribute name="width">
|
||||
+ <xsl:value-of select="concat(round((@relwidth div $relative.widths.total) * 100))"/>
|
||||
+ <xsl:value-of select="concat('', round((@relwidth div $relative.widths.total) * 100))"/>
|
||||
+ </xsl:attribute>
|
||||
+ <xsl:apply-templates mode="dtbl-use-absolute-widths"/>
|
||||
+ </xsl:element>
|
||||
|
Loading…
Reference in New Issue
Block a user