Skip to main content
Liphou
Inspiring
November 25, 2017
Beantwortet

[XML] Improt Problème Style

  • November 25, 2017
  • 1 Antwort
  • 1594 Ansichten

Good evening everyone,

When importing an XML into an Indesign doc, I have a style problem, I put a return to the end of my structure before the import, but it always puts me the style of the first elements on the end of the previous one.

Do you have an idea about my problem?

Bonsoir à tous,

A l’import d'un XML dans un doc Indesign, j'ai un problème de style , j'ai bien mis un retour à la fin de ma structure avant l'importation, mais il me met toujours le style du premier éléments sur la fin du précédent.

Avez-vous une idée sur mon problème?

Bien à vous

Question ou posté des question d'XML avec Indesign?

Philippe    

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von Loic.Aigon

Hi Loic.Aigon

Here's a zip at Test-Forum.zip - Google Drive

I put two IDML, it happens sometimes that the idml do with my CC2018 is no longer possible of the worker with CC2018 (???)

Voici un zip à l'adresse suivante Test-Forum.zip - Google Drive

J'ai mis deux IDML, il arrive parfois que l'idml fais avec mon CC2018 ne soit plus possible de l’ouvrier avec CC2018 (???)

Philippe


Ok, your problem was that your carriage return was outside the closing product node in the template

[Product]

     …

[/Product]¶

So when you import XML this carriage return is just ignored and you end up with a glued content. When placing the carriage return before the closing tag, you tell InDesign that carriage return is part of the content.

So now when you import XML while checking "clone repeating content" your carriage return will be duplicated. As a consequence, the paragraphs will be nicely separated and styles applied correctly…

HTH

Loic

Ozalto | Productivity Oriented - Loïc Aigon

1 Antwort

Loic.Aigon
Legend
November 25, 2017

Hi Phillipe

what you need to understand is that the closing tag is kind of a character that will carry the style it’s linked to.

look at this

bla

bli

the style applied to b may apply to a content just because clsing tag is on the same paragraph a b tag.

you need to ensure opening a/o closing tags are not on a same paragraph if you want to be sure thet aren’t any styles mess.

trick is generally to add a specific xml carriage return after the closing tag and before the opening tag. Code is  if i am not wrong.

hth

loic

Liphou
LiphouAutor
Inspiring
November 26, 2017

Good evening and thanks Loïc,

For tag closing, I checked, it seems to me that they are correct, but I have to check on another machine at work, my Indesign does not give me the window "Editor Mode" (if we talk about the same thing).

My XML is correct, the code "& # x13;" in XML?


Good night

Philippe

J'ai réussi  mon trie

Daniel Sterchi
Inspiring
November 27, 2017

Hi Liphou

You get into the «Editormode» by pressing <CMD><y>, when you are inside a Textframe.

kind regards

Daniel (from Switzerland)