Thread View: adobe.scripting.indesign
2 messages
2 total messages
Started by noob_for_life
Mon, 16 Mar 2009 05:43
Styling text in the middle of an XML element?
Author: noob_for_life
Date: Mon, 16 Mar 2009 05:43
Date: Mon, 16 Mar 2009 05:43
11 lines
1843 bytes
1843 bytes
I am planning an implementation of a database populated catalog via XML. This will be my first such implementation and I'm struggling with one aspect of this. How do I deal with styled text in the middle of a copy block? How can I make sure it comes in via XML as styled. I was thinking I could insert InDesign tags into the flow. Our workflow has copywriters composing text in a web tool which will feed a database. That database will export XML and be pulled into a string of text boxes in a spread of the catalog. Copy may subsequently be changed, exported again, and pulled in again. Later in the flow, we hope to make changes only on the spread and then export it back into the database. I don't see a convenient way to deal with styled text in the middle of an element. For example, suppose a book name appears in the middle of a sentence. We would want it to appear in bold or italics. Is there a way you would recommend for our copywriters to indicate this so it can be pulled in and be automatically styled on import? Suppose styling happens later in the flow, is there a way to export this in XML so it can be preserved in the database? Can we combine InDesign tags (my first efforts at this haven't given me much hope we can)? Thanks!!!
Re: Styling text in the middle of an XML element?
Author: Andrew_Sandley
Date: Mon, 16 Mar 2009 17:19
Date: Mon, 16 Mar 2009 17:19
8 lines
1071 bytes
1071 bytes
You should be able to combine tags just fine. Define <italic> and <bold> in your copywriting/database workflow/XML (the process will vary widely by tool selection). The end result should be the export from your db of something approximate to <stuff> <item>Item Number <bold>One</bold></item> <item>Item <italic>Number</italic> Two</item> </stuff> Map those new tags to appropriate character styles in InDesign for both import and export, and you should be golden.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads