Copy link to clipboard
Copied
We are currently using conditional text settings in our in structured FrameMaker 6.0 documents.
Unfortunately, we have to migrate our documents to an XML environment and therefore, we have to convert our conditional text to filter attributes.
This means, we have to remove the conditional text from each individual text piece and wrap an element around it, which has the desired filter attribute.
Is there a routine that can help us to do this?
Copy link to clipboard
Copied
Robert,
I do not guarantee that this will work, because I have never done it.
I do not know about Frame 6, but in more recent versions conditions are replaced with processing instructions when structured files are saved in XML. Frame's structured applications, which you can use to save as XML, allow you to specify an XSL file to post-process the XML before Frame writes the file. You might be able to write an XSL transform that replaces the processing instructions with elements containing attributes.
Good luck,
Van
Copy link to clipboard
Copied
Thank you Van, we will try that.
Robert
Copy link to clipboard
Copied
You may also be able to do this with FrameScript....
I'd check with Rick Quatro at frameexpert.com to see. I think he's one of the best scripting guys around.
Art
Copy link to clipboard
Copied
All the previous suggestions are valid but I would contend that unless you have an enormous amount of conversion to do and you are confident that your conditional text is applied accurately, you might be better off just doing it manually. Native conditional text is antiquated and error-prone, such that a movement towards a much more precise method of conditionalization is normally bound to uncover errors, if studied manually. Or in other words, it is a great opportunity for some serious cleanup that you might otherwise miss during an automated process.
Russ
Copy link to clipboard
Copied
Hello Russ,
Thanks for your answer. You are probably right that we are better of doing it manually. I was just hoping to save us some work...
Robert
Copy link to clipboard
Copied
Thanks for your help. We will try around a little bit and contact Rick if needed.
Robert
Copy link to clipboard
Copied
The following is just a guess, I've never done this myself:
If you are using FM conversion tables for the migration to XML, you could
1) Apply a specific paragraph or character format to the conditional text in the unstructured source document (Edit > Copy special to capture the format once, then Find & Change by pasting format to apply it).
2) Add a rule for these formats to the conversion table so that they are automatically wrapped into structure elements.
Copy link to clipboard
Copied
Hello Johannes,
thanks for your hint. We will try that.
Robert