Copy link to clipboard
Copied
I've been trying to solve a problem (the old href containing \ problem) using postprocessing xslt, as described in structapp_dev.pdf (FM 9). Not only am I not getting the effect I hope for, but I'm not even getting error messages (even with the file missing).
Does this feature even work with FM9?
Thanks
Bruce
Copy link to clipboard
Copied
Bruce,
I use XSLT pre- and post-processing very much with structured projects, it works.
What have you done to activate it? I use absolute paths in the structapps.fm to reference the XSL file. You can also insert <xsl:message> elements to force some output to FrameMaker’s log window.
- Michael
Copy link to clipboard
Copied
Thanks, Michael, I'm encouraged.
I've attempted to activate it in the structapps.fm file by adding:
Stylesheets
XSLTPreferences
ProcessStylesheetPl
Enable
PostProcessing
Stylesheet: $STRUCTDIR\xml\DITA\app\postproc.xsl
I'm not good at XSLT, so expected errors, but am not even getting that. <xsl:message> gave me nothing, either. So, wondering what I'm missing.
Copy link to clipboard
Copied
Stylesheet: $STRUCTDIR\xml\DITA\app\postproc.xsl
Bruce, two things to try:
1) Use forward slashes here
2) Use an absolute path
I assume you get the XML that you expect after saving as XML? Also, is the correct Structured Application applied to the FrameMaker document before saving?
- Michael
Copy link to clipboard
Copied
Thanks, Michael. Forward slashes haven't made a difference (and is different from every other path in stuctapps.fm), neither has a absolute path. So, I'll keep poking.
Are you using any add-in app, or done any customization of FM?
Bruce
Copy link to clipboard
Copied
Cockpit error. As it was increasingly seeming to be. I'd edited structapps.fm in the FM directory rather than in the Documents and Settings hierarchy. (I'd thought that was the one I'd always edited to add an app, but oh, well, so much for memory.)
I'm now at least getting error messages, so I can proceed.
Thanks, Michael, for at least confirming that the feature works, so I'd continue plugging at it.