InDesign - repeating XML tags

New Here ,
Jan 06, 2021

Copy link to clipboard

Copied

I have XML that I'm using to make a catalog, but I'm facing a problem with a certain repeated tag.

In the structure I have short lists

<item>content</item>
<item>othercontent</item>
<item>somethingelse</item>
<item>entirelydifferent</item>

I have <item> assigned to a paragraph style, which works fine for font, bullet points etc. but the problem is that this list is being counted as one single paragraph. The bullet point is being applied only at the front of the first <item> tag, and not the subsequent tags. Subsequent tags are also not having a line break applied to them, any line break in the template gets applied to the end of the last tag when xml is imported.

InDesign is basically treating the above list as:

<item>contentothercontentsomethingelseentirelydifferent</item>

Why does InDesign count repeated identical tags as one and the same tag (and thereby one and the same paragraph), and what can I do to resolve this issue? I need each <item> tag on its own line and with its own bullet point.

n.b. These lists vary in length by product, so I can't just use dummy/placeholder content with a specific number of <item> tags.

Thanks a million for any help that can be provided!

TOPICS
How to, Import and export, Scripting

Views

24

Likes

Translate

Translate

Report

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

InDesign - repeating XML tags

New Here ,
Jan 06, 2021

Copy link to clipboard

Copied

I have XML that I'm using to make a catalog, but I'm facing a problem with a certain repeated tag.

In the structure I have short lists

<item>content</item>
<item>othercontent</item>
<item>somethingelse</item>
<item>entirelydifferent</item>

I have <item> assigned to a paragraph style, which works fine for font, bullet points etc. but the problem is that this list is being counted as one single paragraph. The bullet point is being applied only at the front of the first <item> tag, and not the subsequent tags. Subsequent tags are also not having a line break applied to them, any line break in the template gets applied to the end of the last tag when xml is imported.

InDesign is basically treating the above list as:

<item>contentothercontentsomethingelseentirelydifferent</item>

Why does InDesign count repeated identical tags as one and the same tag (and thereby one and the same paragraph), and what can I do to resolve this issue? I need each <item> tag on its own line and with its own bullet point.

n.b. These lists vary in length by product, so I can't just use dummy/placeholder content with a specific number of <item> tags.

Thanks a million for any help that can be provided!

TOPICS
How to, Import and export, Scripting

Views

25

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 06, 2021 0

Have something to add?

Join the conversation