Copy link to clipboard
Copied
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
1 Correct answer
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 se
...Copy link to clipboard
Copied
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
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi Liphou
At this stage, it would be great to share samples.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
OK, Yes
Ok and thanks, because I would never have pence to put it there, not wanting to get out of the book "From XML to InDesign for graphic designers" on page 123, Rule Number 4 "Always insert a carriage return after the last element for a dynamic and structured model. "
Thank you for sharing the experience!
That says very good book !!!
---
Ok et merci, car je n'aurais jamais pence à le mettre là, en ne voulant pas sortir des réglés le livre " De XML à InDesign pour les graphistes" à la page 123, Règle Numéro 4 "Toujours insérer un retour chariot après le dernier élément destiné à une maquette dynamique et structurée."
Cela dis très bon livre !!!
Merci pour avoir partagé l'expérience !
Copy link to clipboard
Copied
Ok and thanks, because I would never have pence to put it there, not wanting to get out of the book "From XML to InDesign for graphic designers" on page 123, Rule Number 4 "Always insert a carriage return after the last element for a dynamic and structured model. "
it has been too long since I read the book and all I have learned regarding to importing XML comes from it.
As regards handling carriage returns in a repetitive context, it took me a few projects to master the technique.
Copy link to clipboard
Copied
Indeed this book and these examples are super well done, functional and understandable, it does not leave me with another book "XML for editing", very good choice for this XML and Indesign.
Effectivement ce livre et ces exemples sont super bien fait, fonctionnel et compréhensible, il ne me quitte plus avec un autre livre "XML pour l'édition", des très bon choix pour ce mettre à XML et Indesign.
Merci à tous
Copy link to clipboard
Copied
Hi Liphou
You get into the «Editormode» by pressing <CMD><y>, when you are inside a Textframe.
kind regards
Daniel (from Switzerland)
Copy link to clipboard
Copied
Thank you Daniel (from Switzerland)
I had to Reset my workspace.
Thank you
Liphou
Merci Daniel
J'ai du Réinitialiser mon espace de travail.
Merci
Liphou

