|
From: <ma...@us...> - 2010-12-03 13:59:28
|
Revision: 180
http://openautomation.svn.sourceforge.net/openautomation/?rev=180&view=rev
Author: mayerch
Date: 2010-12-03 13:59:22 +0000 (Fri, 03 Dec 2010)
Log Message:
-----------
- corrected error in visu_config.xsd
- added PHP that checks the config file against the schema/XSD
- added link to status bar to make config file check easily accessable
Note: the config in the repository is currently not valid against the current schema!
Modified Paths:
--------------
CometVisu/trunk/visu/visu_config.xml
CometVisu/trunk/visu/visu_config.xsd
Added Paths:
-----------
CometVisu/trunk/visu/check_config.php
Added: CometVisu/trunk/visu/check_config.php
===================================================================
--- CometVisu/trunk/visu/check_config.php (rev 0)
+++ CometVisu/trunk/visu/check_config.php 2010-12-03 13:59:22 UTC (rev 180)
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CometVisu-Client: Config file check</title>
+ </head>
+ <body>
+<?php
+
+$dom = new DomDocument();
+$dom->load("visu_config.xml");
+
+if ($dom->schemaValidate("visu_config.xsd")) {
+ print ("config is valid XML");
+} else {
+ print ("config is NOT valid XML");
+}
+
+?>
+ </body>
+</html>
Modified: CometVisu/trunk/visu/visu_config.xml
===================================================================
--- CometVisu/trunk/visu/visu_config.xml 2010-12-02 12:19:36 UTC (rev 179)
+++ CometVisu/trunk/visu/visu_config.xml 2010-12-03 13:59:22 UTC (rev 180)
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<pages design="pure">
+<pages design="pure"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="visu_config.xsd">
<meta>
<plugins>
<plugin name="colorchooser" />
@@ -51,6 +53,11 @@
- <a href=".">normal Mode</a>
]]>
</status>
+ <status type="html">
+ <![CDATA[
+ - <a href="check_config.php">Check Config</a>
+ ]]>
+ </status>
</statusbar>
</meta>
<page name="Übersicht" flavour="orange">
Modified: CometVisu/trunk/visu/visu_config.xsd
===================================================================
--- CometVisu/trunk/visu/visu_config.xsd 2010-12-02 12:19:36 UTC (rev 179)
+++ CometVisu/trunk/visu/visu_config.xsd 2010-12-03 13:59:22 UTC (rev 180)
@@ -71,7 +71,7 @@
</xsd:choice>
</xsd:complexType>
</xsd:element>
-^
+
<xsd:element name="plugin">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|