xpath-based transformations in structured framemaker
DESCRIPTION
XSLT allows you to transform the structure of XML files into anything you need. As structured FrameMaker is not exactly XML but follows the same structured design, the capabilities of XSLT within the FrameMaker environment can be very useful. The FrameSLT plug-in produced by West Street Consulting offers this functionality at a very low price. This presentation gives an introduction to what the tool can do, and what it means to do transformations of structure in technical documents.TRANSCRIPT
![Page 1: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/1.jpg)
it’s a kind of magic...XPath-based transformations in Structured FrameMaker
Jang F.M. Graat
![Page 2: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/2.jpg)
who’s talking ?
• Jang F.M. Graat
• Amsterdam, Netherlands
• physics, psychology, philosophy
• 25+ yrs in tech comms
• self-educated professional
• Automating FrameMaker
![Page 3: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/3.jpg)
what is this about ?
• XML & DOM
• XPath & XSLT
• FrameSLT
• Node Wizard Scripts
• ExtendScript
![Page 4: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/4.jpg)
XML & DOMa very quick explanation
![Page 5: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/5.jpg)
XML : organized storage
![Page 6: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/6.jpg)
DOM : abstract roadmap
![Page 7: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/7.jpg)
XPath & XSLTthe basic concept
![Page 8: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/8.jpg)
XPath : navigation device
![Page 9: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/9.jpg)
XSLT : makeover
![Page 10: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/10.jpg)
FrameSLTtransforming FrameMaker documents
![Page 11: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/11.jpg)
structured FM ≠ XML
![Page 12: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/12.jpg)
FrameSLT ≠ XSLT
![Page 13: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/13.jpg)
the true magician
• Russ Ward
• West Street Consulting
• FM plug-ins
• Usability main drive
• FrameSLT : $100
• Real value : priceless
![Page 14: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/14.jpg)
the magician’s hat
![Page 15: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/15.jpg)
finding your targets
Title
/Chapter/Title
//Section/Title
//Title[contains(.,”Intro”)]
//Section[contains(Title,"tion")]/*/Para[1]
//Section[descendant::BulletList]
//*/@conref
//Title/@id[.!=””]
following-sibling::Note[@Type,”Warning”]
![Page 16: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/16.jpg)
element actions
![Page 17: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/17.jpg)
attribute actions
![Page 18: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/18.jpg)
transformation engine
![Page 19: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/19.jpg)
Node Wizard Scriptsprogramming for non-programmers
![Page 20: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/20.jpg)
structured FM file
![Page 21: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/21.jpg)
event definitions
![Page 22: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/22.jpg)
subevents
![Page 23: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/23.jpg)
FM-specific actions
![Page 24: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/24.jpg)
user-friendly dialog
![Page 25: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/25.jpg)
ExtendScriptbringing it all together
![Page 26: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/26.jpg)
CallClient method
![Page 27: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/27.jpg)
running the node wizard
![Page 28: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/28.jpg)
running NW scripts
![Page 29: XPath-based transformations in structured FrameMaker](https://reader034.vdocuments.us/reader034/viewer/2022042504/546c5169b4af9f612c8b4f74/html5/thumbnails/29.jpg)
magic is in the air