I started work on extending the functionality of the .Domino Framework to provide the ability to "skin" an application for a Notes client based upon a style sheet. The first challenge has been to develop an approach to take. I had previously developed a solution for views that used the NotesDOMPaser. Viewnify also uses this approach. The downside to this is the lack of a standard way to define the "style". Importing from a CSS was a possible options but what names should be applied to the classes/ids...
I decided to try XSLT. It is an industry standard and the transformations could be defined as data rather than code. Notes provides a way to transform DXL using an NotesXSLTTransformer class. Using the Domino.reflections namespace I have extended the existing DominoDocummentCollectionDesign class to provide a Transform method. This new method acts upon the selected design elements, exports them to DXL, applies an XSLT before importing the modified design elements back into teh database. I also developed a debug option that exports the DXL to a file so it can be inspected.
Comments (0)