If you want to use this snippet, download the whole collection of examples in this TRM from this link:
https://supportfiles.cpp.canon/trm/Examples-TRM-Mk8.1.1.zip
You can open the style sheets with Notepad or with any XML editor, for example Notepad++.