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

[XML] Improt Problème Style

Enthusiast ,
Nov 25, 2017 Nov 25, 2017

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    

TOPICS
Scripting
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

People's Champ , Nov 27, 2017 Nov 27, 2017

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.

Capture d’écran 2017-11-27 à 13.45.14.png

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

...
Translate
People's Champ ,
Nov 25, 2017 Nov 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

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
Enthusiast ,
Nov 26, 2017 Nov 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

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
Enthusiast ,
Nov 27, 2017 Nov 27, 2017

When I import into Indesign, in the editor view
Result:

Quand j'importe dans Indesign, dans l'affichage en mode éditeur

Résulta :

blal

BlaBla

sqsqs

(encrage Blocs)blal

BlaBla

sqsqs

(encrage Blocs)

et je confirme bien à voir un retour :

Capture d’écran 2017-11-27 à 09.48.40.png

à suivre

Philippe

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
People's Champ ,
Nov 27, 2017 Nov 27, 2017

Hi Liphou

At this stage, it would be great to share samples.

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
Enthusiast ,
Nov 27, 2017 Nov 27, 2017

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

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
People's Champ ,
Nov 27, 2017 Nov 27, 2017

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.

Capture d’écran 2017-11-27 à 13.45.14.png

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…

Capture d’écran 2017-11-27 à 13.44.55.png

HTH

Loic

Ozalto | Productivity Oriented - Loïc Aigon

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
Enthusiast ,
Nov 27, 2017 Nov 27, 2017

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 !

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
People's Champ ,
Nov 27, 2017 Nov 27, 2017

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.

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
Enthusiast ,
Nov 27, 2017 Nov 27, 2017
LATEST

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

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
Enthusiast ,
Nov 27, 2017 Nov 27, 2017

Hi Liphou

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

kind regards

Daniel (from Switzerland)

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
Enthusiast ,
Nov 27, 2017 Nov 27, 2017

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

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