Copy link to clipboard
Copied
Hi everyone!
I have to layout a document and I usually receive .doc and .rtf files.
But this time I received a folder with 2 files, one called styles.xml and the other called content.usx.
I renamed the .usx file to .xml and imported it into a new Indesign document.
Now I have the Structure panel and if I drag the content to the blank page all the text is placed without problems BUT it has no character styles or paragraph styles.
How can I import the styles that appear in the styles.xml file so I can assign the Tags to those styles?
Thank you very much for your help!!!!
Copy link to clipboard
Copied
Can you see if tags are applied directly to the text?
If that's the case, you may be able to work backwards (or sideways, I guess, depending on how you look at it). If you can see the tags are applied to the placed XML text, you may be able to create the paragraph styles (and to a lesser extent, the character styles), then apply tags to the InDesign created styles to correspond to your tagged text.
There may be some extra styling that needs to be done, because XML is generally limited to <p> and <H1-6> and your print styling may require more formatting than that. But if the text itself is tagged as it's placed within InDesign, it's worth a shot.
Hopefully some of the XML/ebook processing pros will take a look at this and may be able to provide even better solutions for you. But failing that, hopefully this workaround can give you some relief.
Hope this works for you,
Randy
Copy link to clipboard
Copied
Thanks a lot Randy.
Yes, there are tags applied on the text but I am seeing that there are only 9 tags for a text which should have more than 20 paragraph styles. And I don't know if there is a way to load the Paragraph Styles from the styles.xml file instead of manually creating those styles.
Any ideas on how to do this?
Thanks a lot.
Copy link to clipboard
Copied
Alas, I don't know how to extract styles information from an existing styles.xml file. A quick search in Google makes me think that such tools are pretty specialized, and dependent on how the XML output has been generated. Hopefully one of our XML gurus will see this and may be able to offer help for that part of your issue.
Wish I could help there, but that's past my skills.
Randy
Copy link to clipboard
Copied
Thank you Randy! I hope so.
Can anyone help me to import paragraph styles from XML file? styles.xml
thanks!