On 9/8/17 08:30, Alexander Lakhin wrote:I have started working through these patches now. I have committed the escaping of < and & and will work through the rest slowly, to minimize disruptions to other development.Great! I have rebased all the remaining patches and updated scripts for the current master (see attachment).So, I've been looking at this profiling stuff, to replace the marked sections in the installation instructions. I found the overhead of that a bit too much for building the full documentation, so I have come up with the attached alternative solution. What do you think?
I'm not happy with the 'particular conversions'-part of 'standalone-profile.xsl'. It applies subsequent modifications, which are in not very intuitive to a reader, eg:
<xsl:template match="phrase[@id='install-ldap-links']">
<xsl:text>the documentation about client authentication
and libpq</xsl:text>
</xsl:template>
This approach spreads the intended text over two very different files (in this example: 'installation.xml' and 'standalone-profile.xsl').
My suggestion is to keep the source code in one file in the same manner as with the SGML standalone-include/standalone-ignore mechanism. A generic xsl file shall create the extended output similar to 'standalone-profile.xsl'.
installation.xml:
collectAll.xsl (similar to standalone-profile.xsl):
<!-- parameters and variables -->