Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Postprocessing xslt

Guest
Sep 07, 2010 Sep 07, 2010

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

TOPICS
Structured
664
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Sep 07, 2010 Sep 07, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 07, 2010 Sep 07, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Sep 08, 2010 Sep 08, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 08, 2010 Sep 08, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 08, 2010 Sep 08, 2010
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines