Article View: adobe.scripting.indesign
Article #18896Question for Ole on style to tag mapping
From: pjredman
Date: Thu, 30 Jan 2003 19:20
Date: Thu, 30 Jan 2003 19:20
21 lines
2276 bytes
2276 bytes
Ole, I have an issue that�s been plaguing me for some time and I wonder if you can help resolve it. When mapping styles to tags on text that has been imported from MS Word much of the document structure is not tagged. The problem works like this. Lets say I have three consecutive paragraphs that all have the �Body Text� style assigned to them. When mapped to the �body_text� tag the XML output should look like this: <body_text>paragraph stuff</body_text> <body_text>paragraph stuff</body_text> <body_text>paragraph stuff</body_text> Instead what I get is this: <body_text>paragraph stuff paragraph stuff paragraph stuff</body_text> Consecutive elements with the same style are not mapped as individual elements. This also happens when the text is created using the �Fill with placeholder text� function. This problem does not occur with text that has been typed directly into InDesign. I would guess that many (most?) folks who are repurposing InDesign documents using XML are importing text from MS Word or some other text file type. This problem is a showstopper for our XML workflow. Can you replicate this problem? I need to confirm that it�s not unique to my system or workflow. Note that the same problem occurs when employing the AutoTag method to the document in Visual Basic. Any advice you have or indication that this is somehow being addressed as a bug fix or future release would be helpful. Thanks so much and congratulations on the book release! Phil Redman
Technical Details
Message-ID:
<1de7a030.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!bnewspeer01.bru.ops.eu.uu.net!emea.uu.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,1f88565c9e628a0b,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-01-30 11:37:55 PST From: pjredman <pjredman@usgs.gov> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!bnewspeer01.bru.ops.eu.uu.net!emea.uu.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Question for Ole on style to tag mapping Message-ID: <1de7a030.-1@WebX.la2eafNXanI> Date: Thu, 30 Jan 2003 11:20:59 -0800 Lines: 36 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit