🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8182

Re: tags in story editor

#8182
From: Dirk_Becker
Date: Thu, 02 Nov 2006 16:44
11 lines
1757 bytes
Your initial posting is a bit too confusing in several regards. This and the exotic topic of XML leads to less then useful answers. So please give us an idea on these issues:

Why do you import the XML into a separate XML hierarchy - those xmlElements whose content you're assigning. The usual way would be to import the XML straight in place.

The approach to copy from an intermediate hierarchy makes sense if you won't need tags later on e.g. for round trip XML re-export. This can be the case when your XML content holds formatting commands rather than text data. Right now you sound like you intend to build a transformer using scripting, a bad choice especially as you don't know why and how to get along in scripting at all.

So your first decision is whether you want to use XML features beyond your current use as data source, then you'd have to learn the XML features of InDesign and prepare your XML accordingly e.g. in an outside transformer.

Otherwise your XML is just irrelevant for the further proceding and your issue turns to how-to navigate a document, apply styles and attributes to regular text.

Dirk
Technical Details
Message-ID: <3bc21ef6.5@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!webcrossing
References: <3bc21ef6.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,3b47053dd9548640,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dirk_Becker@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: tags in story editor
Message-ID: <3bc21ef6.5@webcrossing.la2eafNXanI>
Date: Thu, 2 Nov 2006 08:44:43 -0800
References: <3bc21ef6.-1@webcrossing.la2eafNXanI>
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit