Quantcast
Viewing all articles
Browse latest Browse all 62281

Mapping XML tags to paragraph styles that contain nested styles

I am importing XML into InDesign (CS5.5) and the tag mapping to styles is working fine until I get to a paragraph style that contains a nested style.

 

I have a sentence that starts with a number:

 

1the dog runs fast.

 

In InDesing properly styled looks like this:

 

     1  The dog runs fast.

 

(tab)1(tab)The dog runs fast.

 

The number is styled with a character style (Number) and the whole sentence is styled with a paragraph style (Sentence). In order to get the tabs in between the number, I have a nested style within the paragraph style (Sentence). This triggers the tabs when it hits the character style (Number) like this:

 

Number up to 2 Tab Characters

 

In XML, it looks like this

 

<sentencetag><numbertag>1</numbertag>The dog runs fast.</sentencetag>

 

Sentencetag is mapped to Sentence paragrph style and Numbertag is mapped to Number character style, but the nested style for the tabs are not displaying. I just get this in IND.

 

 

1the dog runs fast.

 

Everything works beautifully until I hit the nested styles, which I do need to get to work somehow. Any help would be much appreciated.

 

Thanks in advance!


Viewing all articles
Browse latest Browse all 62281

Trending Articles