[auscope-geosciml] An XML schema question - use of "nillable" with element type "string" [SEC=UNCLASSIFIED]

Oliver.Raymond at ga.gov.au Oliver.Raymond at ga.gov.au
Mon Aug 22 03:02:46 EDT 2011

Dear XML schema and FullMoon gurus,

There have several places in the GeoSciML model where we have nillable (voidable) attributes of type "CharacterString".

For example:
 [cid:image001.jpg at 01CC60ED.4F5814F0]

These "CharacterString" elements (from ISO19103 Schema Language:BasicTypes) are encoded in the schema by FullMoon like this:
<element name="primaryGuidingCriterion" type="string" nillable="true">

Although the schema document validates with this encoding, it appears that you cannot actually deliver xsi:nil="true" in an instance document like this:
<primaryGuidingCriterion xsi:nil="true" nilReason="unknown"/>

But "string" is a simple type element and I understand cannot have attributes like "nil".  So it looks to me that you just have to deliver an empty element, like this:

1.  Is it possible to deliver "nil +/- nilReason" with a string element?
2.  If not, is FullMoon in error in encoding nillable="true" in the schema for "string" types?
3.  Is the GeoSciML UML model in error in having "nillable" tags on CharacterString elements?



Ollie Raymond

Project Leader
National Geological Maps and Data Standards Project<http://www.ga.gov.au/minerals/projects/current-projects/geological-maps-standards.html>
Geoscience Australia

Interoperability Working Group<https://www.seegrid.csiro.au/wiki/bin/view/CGIModel/InteroperabilityWG>
IUGS Commission for the Management and Application of Geoscience Information

Address: GPO Box 378, Canberra, ACT, 2601, Australia | ABN: 80 091 799 039
Ph: +61 2 62499575  |  Fax: +61 2 62499917  |  Email: oliver.raymond at ga.gov.au<mailto:oliver.raymond at ga.gov.au>  |  Google Map<http://maps.google.com/maps?f=q&hl=en&geocode=&q=canberra+australia&ie=UTF8&ll=-35.344028,149.158362&spn=0.007684,0.016404&t=h&z=17&iwloc=addr&om=1>

--- This message was created with 100% recycled electrons ---

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengeospatial.org/pipermail/geosciml/attachments/20110822/c2311615/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 8603 bytes
Desc: image001.jpg
URL: <http://lists.opengeospatial.org/pipermail/geosciml/attachments/20110822/c2311615/attachment.jpg>

More information about the GeoSciML mailing list