Copy link to clipboard
Copied
I've been tasked with solving a tricky problem at my office. Briefly: We've got a technical manual that needs to be printed each time we sell a piece of equipment. Currently, the manual is produced using a combination of MS Access DB and a convoluted Word doc that uses Mail Merge to pull data from the Access DB into the appropriate fields. The DB has a hundred tables or so, and some of the tables are "calculated" values - i.e. the value in the fields is calculated based on values entered in other tables within the DB. The Word doc uses some kind of "if-then-else" logic to determine which tables to use for which fields when building the doc. This whole setup is currently maintained by the engineering, sales, and marketing departments.
We currently use FM11 (unstructured) in the Technical Writing department, and my boss is asking me to figure out a way to migrate the Access/Word doc described above to a format we can use so we can take ownership of the documentation process for this particular line of equipment. I suspect the variables involved here go way beyond what we can do with conditional text and variables within FM, but I'm wondering if Structured FM (either 11 or 12) is more suited to this project, either by using some sort of conduit between FM and an SQL DB, or directly within FM using conditinal text, variables, or some other organizational function present in either FM11 or FM12.
Any guidance here would be appreciated. I'm not even sure what questions to ask at this point to get a proper shove in the right direction.
Copy link to clipboard
Copied
TW,
Without knowing the details, I can't say with absolute certainty that structured FM (11 or 12) would be a good solution. From what you've said, though, it seems likely.
Is Technical Writing going to be taking over maintenance of all the information, or are the other departments still going to be contributing? Will a database still be used?
I don't know how familiar you are with structure, XML, or XSLT, but two techniques available in structured FM come to mind. One is "filter by attribute" which, like conditional text, allows you to show or hide parts of a document, but is based on attributes of the elements in a structured document. The other is XSLT. As you probably already know, XML is a vendor-independent text-based representation of an element hierarchy. Structured FM was designed to use the same model and with some forethought it is straightforward to move XML material into structured FM. XSLT is a programming language for transforming an XML document into another XML document or other text-based format. XSLT can duplicate the if-then logic of your current Word document. Furthermore, most databases allow you to save search results as XML. Thus, a practical solution, may well involve using XML, possibly manipulated with XSLT, to incorporate information from a database.
Feel free to contact me off-list (lprice at txstruct.com) if you'd like to discuss in more depth.
--Lynne
Copy link to clipboard
Copied
Hi,
I'd support what Lynne already mentioned. Get that SQL queries into XML directly or into CSV and transform the CSV into XML via XSLT. Then get the stuff into structured FM with an appropriate template.
There is really no excuse to do that with word
What keeps me wondering is, why your process uses if/then/else logic within word. When you pull stuff from a SQL database usually the SQL query already inherits the logic for the output.
Sure you can postprocess the stuff with VBscript, XSLT or any other scripting/programming language, it just doesn't make much sense
But if you can generate XML, have already FM 11 at hand and need printed output, it is just a matter of some small effort to get some pdf/printed output from that constellation.
-Alex
Copy link to clipboard
Copied
Hi,
My take is that you are looking at a convoluted process no matter what. But in saying that, I don't think it's necessarily a bad thing. It sounds like innovation to me.
When it comes to the automation of building documents, FrameMaker is a real powerhouse in the field. You have an enormous variety of options, especially if you choose the structured file route. Like Lynne implies, it is not really possible to say with certainty whether FrameMaker is the right tool without some in-depth analysis, but I think it likely that it can do the job. Lots of things to consider though, such as your publishing requirements, tool familiarity, budget, etc. etc.
I would naturally gravitate towards FM, but my attitude is skewed by the fact that I am experienced with scripting and structured content within FM. I know that with the right skills, you can make it stand up and dance. But that might not be the skill set you have, you want to have, or you want to pay for.
Just some thoughts.
Russ
Copy link to clipboard
Copied
I love this line: Get that SQL queries into XML directly or into CSV and transform the CSV into XML via XSLT. Reminds me of that bit in "Good Morning, Vietnam" where Robin Williams goes through the routine about the Vice President: "Well, sir, since the VP is such a VIP, shouldn't we keep his ETA on the QT? Otherwise, he might get KIA and then we'd all be on KP." And now, back to work...
I'm going to try to answer all of the questions above, in order, and add a little info where appropriate.
Thanks for your input - looking forward to hearing what else you folks have to say.
Copy link to clipboard
Copied
Another option to conisder is to look at database publishing tools like Miramo from Datazone (http://www.miramo.com) using their personal edition (a freebie) or PatternStream ($$). With Miramo, you can wrap the database content with tags and use either an XML/XSLT approach or Miramo's own internal macro processiong language (more Basic like) that creates formatted unstructured FM content. With Patternstream, you can pull database content directly into FM much like the mail merge approach.
Copy link to clipboard
Copied
Arnis - Both of those options (Miramo and Patternstream) answer at least one of my questions - namely, whether FM can/will integrate with a DB product. Apparently it will, so thanks for point those two solutions out. I haven't played with either of them enough to determine whether or how they'll solve my problem, but at least I'm moving in the right direction.
Alex - Part of my problem, I suspect, is that I know exactly squat about XML, including why I'd want to export it from Access. There don't seem to be many resources out there for Structured FrameMaker (like my excellent "Unstructured FrameMaker 11" book).
Copy link to clipboard
Copied
Briefly, Miramo uses a push approach to get content into FM, while PatternStream is more of a pull approach. This will influence your workflow and how you interact with a database.
Copy link to clipboard
Copied
Hi,
this presentation I just found may shed some light into the "why":
http://www.textmatters.com/resources/pdfs/struct_docs.pdf
-Alex
Copy link to clipboard
Copied
Hi,
the line you love so much is the line that might rescue your day (more or less)
I checked if Access can do a XML export and - surprise - it can do.
You can do that export for almost everything in Access, means you could set up a form with all the database queries needed/wanted and export the result into XML.
Having an XML file at hand, you can import it into FM structured and get the result into whatever output format you need (be it HTML or PDF or whatever).
Alternatively you could automate that process and publish directly into PDF or HTML with XSLT and XSL:FO, but lose some typographic options on that route.
It is really hard to tell what's best for you - I'd suggest you get yourself involved with those possibilities and decide according to what you need in correlation to the effort needed.
And as Arnis already stated - there's always some place for 3rd party software, that might be able to do exactly what you need.
If you should want to use FM in the end, I would like to mention two things:
Don't bother with DITA or any other generalistic structure definition, if you don't really need to. They tend to complicate the process for such "small" projects.
While you're at it, you could evaluate, if it would be smart to move all of your documentation to structured FM (where the above mentioned structure definitions would kick in and become suitable). But I guess that's a bit far stretched for the moment
Either way, you will most probably end up getting involved with XML, DTDs (and structure in general), EDDs and the whole process of getting a set of structured information from application A to application B.
-Alex