Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Map Tags to Styles not working

Community Beginner ,
Jan 02, 2018 Jan 02, 2018

Hello, I am having a problem when importing a xml file. When I do so the Map Tags to Styles box is blank as shown below.

Does anybody know what might be happening?

I use simple tags as below:

<xml>

<chapnum>1</chapnum>

<normal>blah blah blah blah blah</normal>

<normal>another paragraph text</normal>

<normal>more paragraph text</normal>

<chapnum>2</chapnum>

<normal>blah blah blah blah blah</normal>

<normal>another paragraph text</normal>

<normal>more paragraph text</normal>

</xml>

1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Jan 17, 2018 Jan 17, 2018

I think I figured out a work around. I replaced the <xml> and </xml> tags in the file and replaced it with <book> and </book> (I think anything could be used) and it imported fine. I am not sure why it through a fit using <xml> at times but it looks like this will work.

<book>

<chapnum>1</chapnum>

<normal>blah blah blah blah blah</normal>

<normal>another paragraph text</normal>

<normal>more paragraph text</normal>

<chapnum>2</chapnum>

<normal>blah blah blah blah blah</normal>

<normal>another paragraph t

...
Translate
Adobe Employee ,
Jan 02, 2018 Jan 02, 2018

Hi pateimus,

This will be best answered on our InDesign Scripting forum. Hence moving the thread to scripting space.

Also, you may refer to this tutorial: Tag content for XML in InDesign

Regards

Srishti

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jan 02, 2018 Jan 02, 2018

Srishti, this is the proper forum for this question. Please leave it here.

pateimus,

Which ID version are you using? I am using CS6 in the image below, but I haven't read of any issues in the current versions (and there wasn't the last time I used CC).

capture-001621.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 07, 2018 Jan 07, 2018

Thank you for the response...I am using 12.0.0.81 x64 build

I am not sure if it would make a difference but I take a previous book that I have created and erase the text in it then import the xml.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jan 07, 2018 Jan 07, 2018

It might/would make a difference if the XML got deformed. But without seeing it I wouldn't know.

It is also possible that ID's preferences got munged-up in some way. It would take deleting the preferences and you would loose any customization of ID.

Mike

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 17, 2018 Jan 17, 2018
LATEST

I think I figured out a work around. I replaced the <xml> and </xml> tags in the file and replaced it with <book> and </book> (I think anything could be used) and it imported fine. I am not sure why it through a fit using <xml> at times but it looks like this will work.

<book>

<chapnum>1</chapnum>

<normal>blah blah blah blah blah</normal>

<normal>another paragraph text</normal>

<normal>more paragraph text</normal>

<chapnum>2</chapnum>

<normal>blah blah blah blah blah</normal>

<normal>another paragraph text</normal>

<normal>more paragraph text</normal>

</book>

Thanks for everyone's help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines