Forum


Replies: 9   Views: 2074
Embedhtml, list styles and item depth
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 admin  · 21-01-2020 - 15:20

Hello,

The page you link is from XMLAPI and the XML content:

<pdx:data pdx:type="list">
    <pdx:item pdx:depth="1">item 1</pdx:item>
    <pdx:item pdx:depth="2">subitem 1.1</pdx:item>
    <pdx:item pdx:depth="2">subitem 1.2</pdx:item>
    <pdx:item pdx:depth="2">subitem 1.3</pdx:item>
    <pdx:item pdx:depth="1">item 2</pdx:item>
</pdx:data>

allows generating a list from XML using XMLAPI (https://www.phpdocx.com/xmlapi-documentation/word-content/insert-list-nested-Word-document-with-PHP), not to set a custom depth style from a custom list style to a paragraph. pdx:depth sets the level of the list content, not a custom style.

Regards.