Article View: adobe.framemaker.sgml
Article #722Interleaving structured files (XML)
From: David_Blyth_San_Diego
Date: Fri, 19 Sep 2008 23:20
Date: Fri, 19 Sep 2008 23:20
106 lines
3936 bytes
3936 bytes
Hi again;
Our group receives XML files that contain eng data for multiple widgets inside 1 standard component. Like....
<component> <Widget>
<name>My Thing</name>
<phone>555-1212</phon>
<description>Very short</description>
</Widget>
<Widget>
<name>Their Thing</name>
<phone>429-4242</phone>
<description>Also short</description>
</Widget>
...
</component>
Unfortunately, the 3rd party SW ("MakeWidgets") only allows engs to write 1 para of Widget description - no tables, graphics, etc - and our Widgets get complicated. We've chatted with the SW company about this restriction but alas, "MakeWidgets" can't change anytime soon.
So our group is trying to split out Widgets separately, treat them as Frame read-only text insets, then interleave long description areas. Like....
<ModifiedComponent>
<Widget IsTextInset="Yes">
<name>My Thing</name>
<phone>555-1212</phon>
<description>Very short</description>
</Widget>
<LongDescription BelongsTo="My Thing">
Blah, blah
</LongDescription>
<WidgetIsTextInset="Yes">
<name>Their Thing</name>
<phone>429-4242</phone>
<description>Also short</description>
</Widget>
<LongDescription BelongsTo="Their Thing">
Blah, blah
<GraphicHere/>
</LongDescription>
...
</ModifiedComponent>
The final system would allow "MakeWidgets" to write Widget XML while Frame would input Widget XML as read-only text insets so Engs or TWs can see (but not write) the data while they write better descriptions. In the long run, we also want the "LongDescriptions" to be dbased text insets so we can reuse them in other docs.
Last restriction. "MakeWidgets" can't see the "LongDescription" element so we need to fold everything back into a single file once we write the XML from inside Frame.
This project entails 2 tasks (that I can see):
Break 1 component file into multiple text insets (or read 1 element in
the component file as 1 text inset, similar to a conref).
Interleave multiple files into 1 single file that Frame accepts as input.
BTW, it's interesting that Frame is good at creating multiple output files,
but not-so-good at accepting multiple files as input. But never mind.
Both tasks seem difficult to do, so I'm soliciting ideas and opinions. Also raucous laughter. ;)
Any ideas?
Thanks!
David Blyth (the UNIX and vi dinosaur)
Staff Technical Writer
QCT Division
QUALCOMM - Standard Disclaimers Apply
Only 149,999,950 more years of Ruling The Earth to go
---------------------------------------------------------------
PS. Yes, I know DITA can handle modules like this - but "MakeWidgets" doesn't accept DITA format. This is one reason why I don't like DITA - it's TW oriented and High Tech XML formats are eng driven. So either you don't use DITA or you swap formats - extremely hard to do - and track info in 2 places. Yuck!
Sorry Ann Rockley.
Technical Details
Message-ID:
<59b68812.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad.newshosting.com!newshosting.com!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.k-dsl.de!ramfeed2.eweka.nl!eweka.nl!hq-usenetpeers.eweka.nl!news4us.nl!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: fcc08,678fb395ec42b48f,start X-Google-Attributes: gidfcc08,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: David_Blyth_San_Diego@adobeforums.com Newsgroups: adobe.framemaker.sgml Subject: Interleaving structured files (XML) Message-ID: <59b68812.-1@webcrossing.la2eafNXanI> Date: Fri, 19 Sep 2008 16:20:32 -0700 Lines: 105 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad.newshosting.com!newshosting.com!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.k-dsl.de!ramfeed2.eweka.nl!eweka.nl!hq-usenetpeers.eweka.nl!news4us.nl!webcrossing X-Original-Lines: 101