[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [6517] Work around a vendor failure
From: |
Greg Chicares |
Subject: |
[lmi-commits] [6517] Work around a vendor failure |
Date: |
Fri, 18 Mar 2016 15:11:17 +0000 |
Revision: 6517
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6517
Author: chicares
Date: 2016-03-18 15:11:17 +0000 (Fri, 18 Mar 2016)
Log Message:
-----------
Work around a vendor failure
Modified Paths:
--------------
lmi/trunk/ChangeLog
lmi/trunk/single_cell_document.cpp
Added Paths:
-----------
lmi/trunk/single_cell_document_00.xsd
Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2016-03-09 01:13:20 UTC (rev 6516)
+++ lmi/trunk/ChangeLog 2016-03-18 15:11:17 UTC (rev 6517)
@@ -38699,3 +38699,9 @@
reg_d_group.xsl
Fix defect introduced 20050720T1018Z: "substandard standard".
+20160318T1511Z <address@hidden> [454]
+
+ single_cell_document.cpp
+ single_cell_document_00.xsd [new file]
+Work around a vendor failure.
+
Modified: lmi/trunk/single_cell_document.cpp
===================================================================
--- lmi/trunk/single_cell_document.cpp 2016-03-09 01:13:20 UTC (rev 6516)
+++ lmi/trunk/single_cell_document.cpp 2016-03-18 15:11:17 UTC (rev 6517)
@@ -100,9 +100,17 @@
// Do nothing. Ancient lmi files have no "version" attribute,
// and that's okay. Here, 'file_version' is used only for
// schema validation, which is performed iff a "data_source"
- // attribute exists and has a nondefault value--but
- // "data_source" is a newer attribute than "version", so there
- // can be no "data_source" without "version".
+ // attribute exists and has a nondefault value--but, because
+ // "data_source" is a newer attribute than "version", there
+ // should be no "data_source" without "version". However, some
+ // old vendor extracts failed to follow that rule, this file
+ // single_cell_document_01.xsd
+ // has been copied to
+ // single_cell_document_00.xsd
+ // which is the correct schema for vendor files that have a
+ // "InforceDataSource" element but no "data_source" attribute.
+ // No corresponding '.rnc' schema is needed because validation
+ // uses only '.xsd' schemata.
}
if(class_version() < file_version)
Added: lmi/trunk/single_cell_document_00.xsd
===================================================================
--- lmi/trunk/single_cell_document_00.xsd (rev 0)
+++ lmi/trunk/single_cell_document_00.xsd 2016-03-18 15:11:17 UTC (rev
6517)
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
+ <xs:include schemaLocation="cell_07.xsd"/>
+ <!--
+ RELAX NG schema for '.ill' files (class single_cell_document).
+
+ Copyright (C) 2012, 2013, 2014, 2015, 2016 Gregory W. Chicares.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License version 2 as
+ published by the Free Software Foundation.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+
+ http://savannah.nongnu.org/projects/lmi
+ email: <address@hidden>
+ snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+ -->
+ <!-- $Id$ -->
+ <!-- Use file extension '.ill' for single-life xml documents. -->
+ <!-- This schema corresponds to version 1 of class single_cell_document. -->
+ <xs:element name="single_cell_document">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="cell_element">
+ <xs:attribute name="version">
+ <xs:annotation>
+ <xs:documentation>Optional for now; to be required in the
future.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="data_source" type="xs:nonNegativeInteger">
+ <xs:annotation>
+ <xs:documentation>Optional for now; to be required in the
future.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
Property changes on: lmi/trunk/single_cell_document_00.xsd
___________________________________________________________________
Added: svn:keywords
+ Id
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [6517] Work around a vendor failure,
Greg Chicares <=