🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17547

Re: Reference XML Element of a Story

#17547
From: James Naylor
Date: Wed, 28 May 2003 09:48
18 lines
1654 bytes
just to follow up, I got the script working by using:

tell XML Element id of associated XML elements of text frame 1 of story myCounter of myDocument to make XML Attribute with properties {name:"author", value:authorName}

although i couldn't get working:
set myXMLElement to XML Element id of associated XML elements of text frame 1 of story myCounter of myDocument
tell myXMLElement to make XML Attribute with properties...

which would have been tidier...

A supplementary question (!) - i have mapped xml tags to paragraph styles, then exported the xml, but I cannot get any paragraph returns to show in the xml.
i.e. intro para style gets tagged, but then the rest of the copy is in body para style. All the text in body para style gets mapped into one xml tag, all run together.

Any way to show the paragraph returns in the resulting xml?

Cheers,

James
Technical Details
Message-ID: <1de92d44.4@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de92d44.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,3cfe9ba1928a7718
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-28 03:08:06 PST
From: "James Naylor" <james.naylor@rbi.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Reference XML Element of a Story
Message-ID: <1de92d44.4@WebX.la2eafNXanI>
Date: Wed, 28 May 2003 02:48:16 -0700
References: <1de92d44.-1@WebX.la2eafNXanI>
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit