From e82f47bfff52abcc38d47d88057be669f991780b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Otto-Ville=20Lamminp=C3=A4=C3=A4?= Date: Mon, 18 Apr 2016 23:39:42 +0300 Subject: [PATCH] Pagenumbers done with CSS --- docx2html.xsl | 10 +++++++++- pages.xsl | 6 +----- paragraphs.xsl | 4 ---- text.xsl | 5 +---- 4 files changed, 11 insertions(+), 14 deletions(-) diff --git a/docx2html.xsl b/docx2html.xsl index e699907..c6f5b6d 100644 --- a/docx2html.xsl +++ b/docx2html.xsl @@ -219,7 +219,15 @@ ul.outsidee { list-style-position:outside} ul.outsidee>li>p:first-child { text-indent:0 !important;display:block} ul>li>p:not(:first-child) { text-indent:0 } ul, li { margin:0;padding:0 } li p {} input[type="text"] {height:18px} input[type="checkbox"] { margin:0 } p {margin:0;position:relative} - article>div {display:block; margin-top:0.1cm;border-width:1px;border-style:solid;position:relative;} + article { + counter-reset: page; + } + article>div { + counter-increment: page; + display:block; margin-top:0.1cm;border-width:1px;border-style:solid;position:relative;} + article>div output.pagenumber::before { + content: counter(page); + } article>div>header.even { display:none; } diff --git a/pages.xsl b/pages.xsl index 94e9d03..d08f891 100644 --- a/pages.xsl +++ b/pages.xsl @@ -241,7 +241,6 @@ - @@ -260,8 +259,6 @@ - @@ -280,8 +277,7 @@ - + diff --git a/paragraphs.xsl b/paragraphs.xsl index b13274e..ad266c4 100644 --- a/paragraphs.xsl +++ b/paragraphs.xsl @@ -61,7 +61,6 @@ - @@ -84,7 +83,6 @@ -
@@ -94,7 +92,6 @@ - @@ -125,7 +122,6 @@ w:pPr/w:numPr/w:numId/@w:val=$listid)]"> - diff --git a/text.xsl b/text.xsl index ccd260e..99248e1 100644 --- a/text.xsl +++ b/text.xsl @@ -60,7 +60,6 @@
-
@@ -71,7 +70,6 @@ - @@ -127,7 +125,6 @@ - @@ -140,7 +137,7 @@ - +