Forum


Replies: 1   Views: 2839
Need to convert my html having ordered list with styling of upper-roman unable to convered the roma
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by dbissa94  · 18-01-2018 - 20:18

Attaching my  content.xml please provide inputs if something is missing 

<?xml version="1.0" encoding="UTF-8"?>
<pdx:document xmlns:pdx="asd" >
    <pdx:content>
        <pdx:embedHTML>
            <pdx:data pdx:dataId="" pdx:type="HTML" pdx:customListStyles="true">
            <![CDATA[<style>
                ul {color: blue; font-size: 14pt; font-family: Cambria}
                td {font-family: Arial}
                ol {list-style-type:upper-roman}
                #redBG {background-color: red; color: #f0f0f0}
                table {border-collapse: collapse}
                </style>
                <h1>The title of the HTML page</h1>
                <p>A normal paragraph.</p>
                <p class="heading2">This is a simple paragraph with <strong>text in bold</strong>.</p>
                <p>Now we include a list:</p>
                <ol>
                    <li>First item.</li>
                    <li>Second item with subitems:
                        <ul>
                            <li style="color: red">First subitem.</li>
                            <li>Second subitem.</li>
                        </ul>
                    </li>
                    <li id="redBG">Third subitem.</li>
                </ol>
                <p>And now a table:</p>
                <table>
                    <tbody><tr>
                        <td>Cell 1 1</td>
                        <td>Cell 1 2</td>
                        <td>Cell 1 3</td>
                    </tr>
                    <tr>
                        <td>Cell 2 1</td>
                        <td>Cell 2 2</td>
                        <td>Cell 2 3</td>
                    </tr>
                </tbody></table>]]>
            </pdx:data>
            <pdx:wordStyles pdx:strict="false">
                <pdx:wordStyle pdx:styleType="tag" pdx:name="LightListAccent3PHPDOCX"><![CDATA[<table>]]></pdx:wordStyle>
                <pdx:wordStyle pdx:styleType="tag" pdx:name="upperRoman"><![CDATA[<ol>]]></pdx:wordStyle>
                <pdx:wordStyle pdx:styleType="class" pdx:name="Heading2PHPDOCX">heading2</pdx:wordStyle>
            </pdx:wordStyles>
        </pdx:embedHTML>
    </pdx:content>
</pdx:document>

 

Here is setting.xml  Using xmldocx to convert

<?xml version="1.0" encoding="UTF-8"?>
<pdx:document  xmlns:pdx="http://www.phpdocx.com/main">
    <pdx:settings>

    </pdx:settings>
</pdx:document>