Re: [xml] #630130 - Patch - GML XSD Schema



Hi,

I just want to emphasize that the validation against the ISO19115/ISO-TS19139 and thus the GML XSD Schema is a problem for several people.

The schema is used within the EU-INSPIRE directive and by the WMO Information System. Those communities are mainly java-centric, but it would be nice to have a c-alternative.

Regards,

Heiko



On 2011-05-25 15:50, Olivier Courtin wrote:
Hi list,

I encouter the same problem, than:
<https://bugzilla.gnome.org/show_bug.cgi?id=630130>


The patch provided by TOYODA Eizi is quite small, and 'works for me'
with latest libxml2 trunk version.


Could we find a way to close this ticket, before next release ?


--- xmlschemas.c.orig 2011-04-24 14:58:16.000000000 +0000
+++ xmlschemas.c 2011-04-24 15:47:50.000000000 +0000
@@ -15158,7 +15158,11 @@
}
if ( (WXS_IS_LIST(type) || WXS_IS_UNION(type)) &&
(WXS_IS_RESTRICTION(type) == 0) &&
- (! WXS_IS_ANY_SIMPLE_TYPE(baseType))) {
+ (
+ (! WXS_IS_ANY_SIMPLE_TYPE(baseType))
+ && (baseType->type != XML_SCHEMA_TYPE_SIMPLE)
+ )
+ ) {
xmlSchemaPCustomErr(ctxt,
XML_SCHEMAP_ST_PROPS_CORRECT_1,
WXS_BASIC_CAST type, NULL,



Tks in advance,

--
Olivier




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]