From 89f6a3544c5b568d61b4307774bc58d5bf822736 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 5 Mar 2009 03:09:33 +0000 Subject: [PATCH] XMLDB generated docs: XHTML strictify output, and strip trailing whitespace. --- .../generate_documentation.class.php | 8 +++---- .../actions/generate_documentation/xmldb.xsl | 24 ++++++++++--------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/admin/xmldb/actions/generate_documentation/generate_documentation.class.php b/admin/xmldb/actions/generate_documentation/generate_documentation.class.php index f45dcb6b61..436ec41948 100644 --- a/admin/xmldb/actions/generate_documentation/generate_documentation.class.php +++ b/admin/xmldb/actions/generate_documentation/generate_documentation.class.php @@ -67,21 +67,21 @@ class generate_documentation extends XMLDBAction { if(!file_exists($path) || !is_readable($path)) { return false; } - + /// Add link back to home $b = '

'; $b .= ' [' . $this->str['backtomainview'] . ']'; $b .= '

'; $this->output=$b; - + if(class_exists('XSLTProcessor')) { /// Transform XML file and display it $doc = new DOMDocument(); $xsl = new XSLTProcessor(); - + $doc->load(dirname(__FILE__).'/xmldb.xsl'); $xsl->importStyleSheet($doc); - + $doc->load($path); $this->output.=$xsl->transformToXML($doc); $this->output.=$b; diff --git a/admin/xmldb/actions/generate_documentation/xmldb.xsl b/admin/xmldb/actions/generate_documentation/xmldb.xsl index 5197eae3f4..9236adf8eb 100644 --- a/admin/xmldb/actions/generate_documentation/xmldb.xsl +++ b/admin/xmldb/actions/generate_documentation/xmldb.xsl @@ -1,6 +1,8 @@ + +

This documentation is generated automatically from the XMLDB database @@ -18,7 +20,7 @@ - +
@@ -38,18 +40,18 @@ - +

Keys

-
Field Type
- +
+ - + @@ -72,14 +74,14 @@ - +

Indexes

-
Name Type Field(s) Reference Description
+
@@ -106,7 +108,7 @@ - + @@ -121,7 +123,7 @@ - + -- 2.39.5
Name Type