[opencms-dev] Unable to sort with collector.priority

Lammersdorf, Lorenz ll at metrohm.com
Thu Oct 23 07:06:42 CEST 2008


hi list,

this is my scheme:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
<xsd:element name="Events" type="OpenCmsEvents"/>
<xsd:complexType name="OpenCmsEvents">
<xsd:sequence>
<xsd:element name="Event" type="OpenCmsEvent" minOccurs="0" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="OpenCmsEvent">
<xsd:sequence>
<xsd:element name="Event" type="OpenCmsString" />
<xsd:element name="EventURL" type="OpenCmsString" minOccurs="0" maxOccurs="1" />
<xsd:element name="Venue" type="OpenCmsString" minOccurs="0" maxOccurs="1" />
<xsd:element name="Release" type="OpenCmsDateTime" />
<xsd:element name="Start" type="OpenCmsDateTime" />
<xsd:element name="End" type="OpenCmsDateTime" />
<xsd:element name="Booth" type="OpenCmsString" minOccurs="0" maxOccurs="1" />
<xsd:element name="Company" type="OpenCmsString" minOccurs="0" maxOccurs="1" />
<xsd:element name="CompanyURL" type="OpenCmsString" minOccurs="0" maxOccurs="1" />
</xsd:sequence> 
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
</xsd:complexType>
<xsd:annotation>
<xsd:appinfo>
<mappings>
<mapping element="Release" mapto="attribute:datereleased" />
<mapping element="Start" mapto="property:collector.priority" />
<mapping element="End" mapto="attribute:dateexpired" />
</mappings>
<layouts>
<layout element="EventURL" widget="LinkGalleryWidget" />
<layout element="CompanyURL" widget="LinkGalleryWidget" />
</layouts>
<defaults>
<default element="Release" value="${currenttime}"/>
</defaults>
</xsd:appinfo>
</xsd:annotation>
</xsd:schema>

but no matter which collector i use in my jsp-template, sorted is by the releasedate allways. why?

thanks!
lorenz



More information about the opencms-dev mailing list