im currently using the XHTMLImporter to convert HTML-Files to Docx while copying the Style aswell as the Numberingdefinitions from a different Docx which acts as an template.
The corresponding copied styles are shown inside the generated document but they are not applied to the header elements but instead on the Numbering infront of them.
Setting the Paragraphformatting to ether option doesnt help.
Much appreciated if someone could explain what im doing wrong exactly.
I included the docx
and this is the xhtml
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator"
content="HTML Tidy for Java (vers. 2023-09-17), see jtidy.sourceforge.net" />
<title></title>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8" /><style type="text/css">
/*<![CDATA[*/
span.c1 {color: #1b94c1; font-size: medium; font-family: arial,helvetica,sans-serif;}
/*]]>*/
</style>
</head>
<body>
<h1 class="Heading1">Introduction</h1>
<p><span class="c1">With the increasing multimedia capabilities
of computers it would seem possible to allow computer users to
browse through the family album of photos online. This is the
essence of <em><strong>ePhoto</strong></em>, a small, easy
to use software utility.</span></p>
<p> </p>
<p><span class="c1">A separate part of the business shall deal
with exactly how the user's photographs become digitally
encoded. Suffice it to say, they shall probably be sent in to
our office where they shall be scanned and written to a
CD-ROM. These are referred to as the back office
capabilities.</span></p>
<h1 class="Heading1">Scope</h1>
<p><span class="c1">This document represents a comprehensive
look at the issues relevant to such a product. As such, this
represents the definitive source for the problem
statement.</span></p>
<p><span class="c1">All back office functions (scanning of
original input materials and so on) are beyond the scope of
this document.</span></p>
<h1 class="Heading1">Requirements</h1>
<h2>General Requirements</h2>
<h3>Design Requirements</h3>
<h4>Support Advantix formats</h4>
<h3>Documentation Requirements</h3>
<h4>On-line help provided</h4>
<h3>Functional Requirements</h3>
<h4>EPhoto will be an online photo album</h4>
<h5>Stored photo slideshows</h5>
<h5>Displaying stored photo info</h5>
<h4>Annotate photos with text</h4>
<h4>Runs on "standard" home PC</h4>
<h4>Provide photo special effects</h4>
<h3>Product Requirements</h3>
<h4>Try to use Tcl/Tk</h4>
<h4>Database stores at least 1024 entries</h4>
<h2>Miscellaneous Requirements</h2>
<h3>System response times</h3>
<h3>System weight</h3>
<h3>System comes in different colors</h3>
<h3>TST</h3>
<h1 class="Heading1">Glossary2</h1>
<h1 class="Heading1">Table of Figures</h1>
<p><a href="#_Ref1503046729291" target="_self"
rtm-reference="img">Figure 2 - Slideshow menu</a></p>
</body>
</html>