New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Presentation Style Overhaul #868
Comments
When will the 2022 style be available? It looks quite nice |
I'm still a few weeks out from publishing it. I'm finishing up conversion of the markdown presentation style to the new API. I also need to update the help to reflect the changes. |
Eric, |
Depending on what you've changed, you may not need a full presentation style replacement. The new API is much more open and extensible and can be modified with a plug-in instead. You've probably already seen it but there's a very basic topic available that describes some of the things you can do with a plug-in to extend and modify the presentation styles and a link to a demo project. For now, comments in the demo project code describe the examples but I plan on expanding on that later with more detailed help topics. The first step would be to get a list of what changes you've made to the XSL-based presentation style and map those to something equivalent in the new API. For the most part, that will likely be replacing or adding element handlers. There's typically a matching code-based element handler for the old XSL template. Usually, the handlers in the new API are named after the element they transform though it may be named differently in some cases. New sections and new elements can be added without changing the presentation style itself. They're just new definitions that get added to the existing presentation style. The same applies to replacing handling for a section or element. For the most part, you just tell the presentation style to use something else instead. I can provide more information about how to translate from the old XSL transformations to the new API. If you determine that you do need to replace the entire presentation style, you can clone the classes and resources and replace the parts that you need. Again, I can provide more information as needed if you need to do that. Eventually I will add a new presentation style project template but it's a matter of figuring out the best way to do that to make the process easier than it was in the past. |
Eric,
So we welcome the move to code over XSL. That make things easier for us. I suspect most or all of what we do can be changed in code too. |
This is just incredible. Bravo! I only noticed this issue today. I have always disliked the slow xsl transformation architecture. |
As part of this overhaul, I plan on reimplementing how the presentation styles are created and used. The goal is to simplify their creation and make them more accessible to modification. Right now, they're hard to implement and change due to the heavy use of XSL transformations.
Planned Changes
Other issues combined with this one and considered for implementation (see issues for details):
Implemented
RobotsMetadata
transformation argument to support specifying robots metadata (e.g. noindex, nofollow).Previously considered but will not implement
The text was updated successfully, but these errors were encountered: