Skip to content
Advertisement

How to copy styles from generated file to target file

How to copy styles and numbering from generated file to target file Generated file image. In generated file bullet points are working fine when merge this to the target file getting issue Target file. The target file was copy of tempalte and a empty file. I assumed due to no numbering.xml it does not showing the bullets as bullets if that is true how can i add numbering to the target file.

generate.php

JavaScript

Advertisement

Answer

When the target file copied with template file it does not had a numbering.xml file. Due to numbering.xml is not available the bullet points were converted into numbers.

The target file was written by using DOMXPATH

JavaScript

Before writing the contents from source to target. Checked numbering is available or not if not then copied numbering from source file and added. It works!

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement