But the stuff in the gadget xsd is significantly different. This looks
more like "these are some defined like types for e.g. the icon of the
gadget, an URl that offers a help page and an URI to get support for
the gadget".
I finally got around to run an XSD editor / validator over the posted
specs. for both specs, they report
src-attribute.4: Attribute 'rel' has both a 'type' attribute and an
anonymous 'simpleType' child. Only one of these is allowed for an
attribute.
So in a nutshell, it seem that the whole block
--- cut ---
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="gadgets.help"/>
<xs:enumeration value="gadgets.support"/>
<xs:enumeration value="icon"/>
</xs:restriction>
</xs:simpleType>
--- cut ---
is bogus. And should probably go from the spec definitions.
Ciao
Henning
On Tue, Dec 30, 2008 at 13:41, Kevin Brown <[email protected]> wrote:
> On Tue, Dec 30, 2008 at 10:53 AM, Henning Schmiedehausen <
> [email protected]> wrote:
>
>> Hi,
>>
>> if I read the gadget xsd for 0.8 right, then the rel parameter of
>> <Link> element allows only three values: icon, gadget.help and
>> gadget.support:
>>
>> <xs:attribute name="rel" type="xs:string" use="required">
>> <xs:simpleType>
>> <xs:restriction base="xs:string">
>> <xs:enumeration value="gadgets.help"/>
>> <xs:enumeration value="gadgets.support"/>
>> <xs:enumeration value="icon"/>
>> </xs:restriction>
>> </xs:simpleType>
>> </xs:attribute>
>>
>> However, various tests in LinkSpecTest on the 1.0.x release branch
>> happily use "foo" etc. values and actually do substitution on the rel
>> value (something which I haven't found anywhere in the spec at all).
>> Is that correct?
>
>
> There are actually an arbitrary number of values for rel to handle lifecycle
> events, which can be container-defined.
>
> Oddly, there actually are some standardized event names, as listed here:
>
> http://www.opensocial.org/Technical-Resources/opensocial-spec-v081#TOC-Lifecycle-events
>
> But they're not in the XSD. I suspect this is just an oversight, since the
> lifecycle event proposal was kind of tacked on at the end of 0.8's proposal
> cycle.
>
>
>>
>>
>> Ciao
>> Henning
>>
>