Ignore:
Timestamp:
May 18, 2011, 9:26:37 PM (12 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1607: Help text generation creates invalid xml

The fix generates the help descriptions with <![CDATA[...]]> sections instead of doing a search-and-replace afterwards for encoding the html tags. This seems to work quite well and the file is a lot more readable than before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/docbook/preprocess/webclient_helptext.xsl

    r4509 r5635  
    2323  <xsl:import href="../docbook/xsl/html/docbook.xsl" />
    2424  <xsl:param name="admon.style"></xsl:param>
     25  <xsl:param name="chunker.message.nofilename">0</xsl:param>
    2526
    2627  <xsl:output method="xml" doctype-system="helpfile.dtd" indent="yes" encoding="UTF-8" />
     
    2829  <xsl:template match="/">
    2930    <xsl:comment>
    30 "Copyright (C) Authors contributing to this file.
     31Copyright (C) Authors contributing to this file.
    3132
    3233This file is part of BASE - BioArray Software Environment. Available at
     
    3536BASE is free software; you can redistribute it and/or modify it under the terms of the
    3637GNU General Public License as published by the Free Software Foundation; either version
    37 2 of the License, or (at your option) any later version.
     383 of the License, or (at your option) any later version.
    3839
    3940BASE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
     
    5556          </xsl:element>
    5657          <xsl:element name="description">
    57               <xsl:apply-templates select="*"/>
     58            <xsl:text disable-output-escaping="yes">&lt;![CDATA[</xsl:text>
     59            <xsl:apply-templates select="*"/>
     60            <xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
    5861          </xsl:element>
    5962        </xsl:element>
Note: See TracChangeset for help on using the changeset viewer.