Re: [PyWrapper-devel] bug in TAPIR Schema Parser
Status: Alpha
Brought to you by:
jatorre
From: Wouter A. <wo...@et...> - 2007-07-17 11:35:16
|
On second thought, I do not think it is really a bug in the Schema parser, but an unclarity in the schema. Since it is not clear from the schema that there will be text content it is logical not to treat the element like that. But it will mean that we will have to treat the results from the schema parser with care. Wouter ----- Original Message ----- From: "Markus Döring" <m.d...@bg...> To: "Wouter Addink" <wo...@et...> Sent: Monday, July 16, 2007 2:02 PM Subject: Re: [PyWrapper-devel] bug in TAPIR Schema Parser ok, they use mixed content which is not really supported by pywrapper I believe. Genus is of type ReferenceType which is: <xs:complexType name="ReferenceType" mixed="true"> <xs:annotation><xs:documentation> Elements of this type are used to refer to other resources. They can be used in the following ways. 1) With text content and no attributes - a simple text representation of the resource. 2) With no text content but a ref attribute pointing to the location or the resource. 3) A combination of the two above. The text content is a summary or the resource referenced to in the ref attribute. </xs:documentation></xs:annotation> <xs:attribute name="ref" type="xs:token" use="optional"> Would it be correct to automatically assign a string datatype to an element that allows mixed content? markus On Jul 16, 2007, at 1:27 PM, Wouter Addink wrote: > No simple type attached to the missing ones I think. > Example in TCS: > DataSet/TaxonNames/TaxonName/CanonicalName/Genus > > Wouter > > ----- Original Message ----- From: "Markus Döring" <m.d...@bg...> > To: "PyWrapper Developers mailing list" <pywrapper- > de...@li...>; "Wouter Addink" <wo...@et...> > Sent: Monday, July 16, 2007 1:22 PM > Subject: Re: [PyWrapper-devel] bug in TAPIR Schema Parser > > >> thanks wouter, >> do you have an example of this at hand? are you sure that the element >> has a simple type attached to it? otherwise it is not recognised as a >> concept on purpose. >> markus >> >> >> >> On Jul 13, 2007, at 4:22 PM, Wouter Addink wrote: >> >>> Hi, >>> Pywrapper contains a handy tool to genereate concept paths from a >>> schema (CNS aliases.txt). However this tool contains a bug. >>> >From concepts with attributes only the paths to the attributes >>> are generated, not the path to the concept itself. >>> >>> Regards, >>> Wouter Addink >>> -------------------------------------------------------------------- >>> -- --- >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> _______________________________________________ >>> PyWrapper-devel mailing list >>> PyW...@li... >>> https://lists.sourceforge.net/lists/listinfo/pywrapper-devel >> >> > > |