Machine Automation Forum
A forum addressing machine automation solutions for the complete machine lifecycle. Including offers like Machine Advisor, Modicon PLC/PacDrive, Lexium or Preventa. Discuss and share knowledge on offers relating to cloud-based service platforms, machine localization and monitoring, industrial operations control, motion products as well as safety function!
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-11-21 06:00 AM
What is the criterion used by the automatic documentation script to generate the HTML documentation list. It does not follow either the pages tree or an alphabetical order as far as I could see.
It would be nice if one could define a logical order according to how the user interface is supposed to work.
Also, the programming manual says that Documentation.xsl file can be personalized to redefine the report stye. Are there any examples available?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-11-22 01:35 AM
Hello,
unfortunately there are no examples, documentation is created with a xsl document which extract data from the xml file representing the HMI project.
If you add to the documentation.xsl file present in your project the line in bold, pages will be sorted in alphabetical order:
...
<xsl:for-each select="PRJ_RESOURCES/PAGES/PAGE">
<xsl:sort select="@name"/>
<table class="table1">
<tr class="titlePage">
...
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-11-22 01:35 AM
Hello,
unfortunately there are no examples, documentation is created with a xsl document which extract data from the xml file representing the HMI project.
If you add to the documentation.xsl file present in your project the line in bold, pages will be sorted in alphabetical order:
...
<xsl:for-each select="PRJ_RESOURCES/PAGES/PAGE">
<xsl:sort select="@name"/>
<table class="table1">
<tr class="titlePage">
...
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-11-22 07:33 AM
Thanks. That´s a start.
I´ve never done much with XML files. To start with, naming the pages in alphabetical order does give me a better order in terms of the documentation. I need to figure out how to modify the xls file so that page title gets stripped of maybe the first two characters, but I guess I will figure it out.
If you already know the answer it would help.
Regards
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.