Article View: adobe.scripting.indesign
Article #10276putting xml in textFrames ... how to place it in tags for styling
From: handsbvba
Date: Thu, 29 Jun 2006 13:40
Date: Thu, 29 Jun 2006 13:40
32 lines
1580 bytes
1580 bytes
Hi ...
I'm still working on creating a book from an XML, I'm
almost finished. But I don't know how to place the xml with tags in a textframe.
At the moment I use the code below, but then I don't see the tags in the story editor, so I can not map styles to tags, or can I?
:: Working on Mac with Javascript - InDesign CS2 ::
CODE :
with (app.activeWindow.activePage.textFrames.add()) {
geometricBounds = gBoundsFilm1;
for (g=0; g<=f1Days[y].xmlElements.length-1; g++) {
insertionPoints.item(0).contents = f1Days[y].xmlElements[g].xmlElements.item("hour").contents +"\n";
insertionPoints.item(0).contents = f1Days[y].xmlElements[g].xmlElements.item("title").contents +"\n";
}
}
* **********************************************************************
By the way, can somebody explain me what these insertionPoints are, how they work?
* **********************************************************************
Technical Details
Message-ID:
<3bc0c25c.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news.germany.com!news.datemas.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,5af5d3e1ecdb6418,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: handsbvba@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: putting xml in textFrames ... how to place it in tags for styling Message-ID: <3bc0c25c.-1@webcrossing.la2eafNXanI> Date: Thu, 29 Jun 2006 06:40:32 -0700 Lines: 35 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news.germany.com!news.datemas.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing