MDL-19319 xmldb docs - move intro paragraph out from xlst

This commit is contained in:
stronk7 2009-05-28 00:07:59 +00:00
parent 6ef8b35a4b
commit 12bef9fe30
2 changed files with 7 additions and 3 deletions

View File

@ -38,7 +38,8 @@ class generate_documentation extends XMLDBAction {
/// Get needed strings
$this->loadStrings(array(
'backtomainview' => 'xmldb'
'backtomainview' => 'xmldb',
'documentationintro' => 'xmldb'
));
}
@ -74,6 +75,11 @@ class generate_documentation extends XMLDBAction {
$b .= '</p>';
$this->output=$b;
$c = ' <p class="centerpara">';
$c .= $this->str['documentationintro'];
$c .= '</p>';
$this->output.=$c;
if(class_exists('XSLTProcessor')) {
/// Transform XML file and display it
$doc = new DOMDocument();

View File

@ -5,8 +5,6 @@
<!-- Top level: disclaimer/intro -->
<xsl:template match="/">
<p>This documentation is generated automatically from the XMLDB database
definition. It is available only in English.</p>
<xsl:apply-templates/>
</xsl:template>