<html><body>
<p>Hello,<br>
<br>
I have a slight problem with sorting a list of xml-documents.<br>
I constructed a jsp, that shows all employees of our company-group in alphabetical order of their lastnames. <br>
<br>
Additionally to that, I like to have a sorting by company (=Gesellschaft) and by location (=Standort),how do I realize this?<br>
<br>
<img src="cid:1__=4EBBFDBBDFDD73C28f9e8a93@vater-gruppe.de" width="981" height="189"><br>
When I use the following maentry.xsd, how can I change this, to make the contentload sort the xml-files according to a different field?<br>
<br>
code -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
<!--<br>
XSD file for the MaEntry content type<br>
--><br>
<!-- 1. Root Element --><br>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" <br>
elementFormDefault="qualified"><br>
<br>
<!-- 2. Define the location of the schema location --><br>
<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/><br>
<!--<xsd:include schemaLocation="opencms://system/modules/org.vug.templates/schemas/maentry.xsd"/>--><br>
<br>
<!-- 3. Root element name and type of our XML type --><br>
<xsd:element name="MaEntrys" type="OpenCmsMaEntrys"/><br>
<br>
<!-- 4. Definition of the type described above --><br>
<xsd:complexType name="OpenCmsMaEntrys"><br>
<xsd:sequence><br>
<xsd:element name="MaEntry" type="OpenCmsMaEntry" minOccurs="0"<br>
maxOccurs="unbounded"/><br>
</xsd:sequence><br>
</xsd:complexType><br>
<br>
<!-- 5. Data field definitions --><br>
<xsd:complexType name="OpenCmsMaEntry"><br>
<xsd:sequence><br>
<xsd:element name="Title" type="OpenCmsString" minOccurs="1" maxOccurs="1" /><br>
<!-- Personendaten:--><br>
<xsd:element name="LastName" type="OpenCmsString" minOccurs="1" maxOccurs="1" /><br>
<xsd:element name="FirstName" type="OpenCmsString" minOccurs="1" maxOccurs="1" /><br>
<!-- Kontaktdaten:--><br>
<xsd:element name="Phone" type="OpenCmsString" minOccurs="1" maxOccurs="1" /><br>
<xsd:element name="Fax" type="OpenCmsString" minOccurs="0" maxOccurs="1" /><br>
<xsd:element name="Mobile" type="OpenCmsString" minOccurs="0" maxOccurs="1" /><br>
<xsd:element name="Email" type="OpenCmsString" minOccurs="1" maxOccurs="1" /><br>
<xsd:element name="PrivatePhone" type="OpenCmsString" minOccurs="0" maxOccurs="1" /><br>
<!-- Category named "Company":--><br>
<xsd:element name="Company" type="OpenCmsString" minOccurs="0" maxOccurs="20" /><br>
<xsd:element name="Location" type="OpenCmsString" minOccurs="0" maxOccurs="10" /><br>
<xsd:element name="Function" type="OpenCmsString" minOccurs="0" maxOccurs="1" /><br>
<!-- Zusatzdaten:--><br>
<xsd:element name="Image" type="OpenCmsVfsFile" minOccurs="0" maxOccurs="1" /><br>
<xsd:element name="Alignment" type="OpenCmsString" minOccurs="1" maxOccurs="1" /><br>
<xsd:element name="Birthday" type="OpenCmsDateTime" minOccurs="0" maxOccurs="1" /><br>
<xsd:element name="Date" type="OpenCmsDateTime" minOccurs="1" maxOccurs="1" /> <br>
<xsd:element name="Comments" type="OpenCmsString" minOccurs="0" maxOccurs="1" /><br>
</xsd:sequence><br>
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/><br>
</xsd:complexType><br>
<br>
<!-- 6. Annotations are used to define additional settings for our content type --><br>
<xsd:annotation><br>
<xsd:appinfo><br>
<!-- 7. Mappings allow data fields to be mapped to content properties --><br>
<mappings><br>
<mapping element="LastName" mapto="property:Title" /><br>
<mapping element="FirstName" mapto="property:Text" /><br>
<mapping element="Date" mapto="attribute:datereleased" /><br>
</mappings><br>
<br>
<!-- 8. Validation rules may be create for field entry --><br>
<validationrules><br>
<!-- <br>
<rule element="BlogText" regex="!.*[Bl]og.*" type="warning" message="${key.editor.warning.BlogEntry.dontallowblog|${validation.path}}"/><br>
--><br>
</validationrules><br>
<br>
<!-- 9. Default values can be set for each field type --><br>
<defaults><br>
<default element="Date" value="${currenttime}"/><br>
<default element="Alignment" value="left"/><br>
</defaults><br>
<br>
<!-- 10. This section controls which widgets are used to edit the data fields --><br>
<layouts><br>
<layout element="Title" widget="StringWidget"/><br>
<layout element="LastName" widget="StringWidget"/> <br>
<layout element="FirstName" widget="StringWidget"/><br>
<layout element="Phone" widget="StringWidget"/><br>
<layout element="Fax" widget="StringWidget"/><br>
<layout element="Mobile" widget="StringWidget"/><br>
<layout element="Email" widget="StringWidget"/><br>
<layout element="PrivatePhone" widget="StringWidget"/><br>
<layout element="Birthday" widget="DateTimeWidget"/><br>
<layout element="Date" widget="DateTimeWidget"/><br>
<layout element="Image" widget="ImageGalleryWidget"/><br>
<layout element="Alignment" widget="SelectorWidget"<br>
configuration="left|right|center" /><br>
<layout element="Company" widget="SelectorWidget"<br>
configuration="Vater 4Office GmbH|Vater Bankenberatung GmbH|Vater Bank IT|Vater BizCon GmbH|Vater ERPteam GmbH|<br>
Vater ESN Business Academy GmbH|Vater Holding GmbH|Vater KNS GmbH|Vater NetCom GmbH|Vater pcs GmbH|<br>
Vater Solution GmbH|Vater SysCon GmbH" /><br>
<layout element="Location" widget="SelectorWidget"<br>
configuration="Bremen, Herrmann-Ritter-Straße 106-114|Hamburg, Schellingstraße 17|Kiel, Am Kiel-Kanal 1|Kiel, Boschstraße 5|<br>
Kiel-Wellsee, Liebigstraße 26|Kiel-Schwentinental, Lise-Meitner-Straße 25-29|<br>
Kiel-Schwentinental, Wasserwerksweg 18" /><br>
<layout element="Function" widget="StringWidget"/><br>
<layout element="Comments" widget="TextareaWidget"/><br>
</layouts><br>
<br>
<!-- 11. UI Localization --><br>
<resourcebundle name="org.vug.templates.workplace"/><br>
<br>
<!-- 12. this section controls relationship checking --><br>
<relations><br>
<relation element="Image" type="strong" invalidate="node" /><br>
</relations><br>
<br>
<!-- 13. Previewing URI --><br>
<preview uri="${previewtempfile}" /><br>
<br>
<!-- 14. Model Folder --><br>
<modelfolder uri="/system/modules/org.vug.templates/models/" /><br>
</xsd:appinfo><br>
</xsd:annotation> <br>
<br>
</xsd:schema><br>
<br>
end of code--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
<br>
Somehow I realized, it could be working by changing the mapping of the title, but I don't know what to change here...:<br>
<br>
Do you have any ideas?<br>
<br>
Mit freundlichen Grüßen<br>
<br>
<br>
<br>
Frank Pertack<br>
<br>
<br>
Vater Solution GmbH<br>
Liebigstraße 26<br>
24145 Kiel<br>
<br>
Telefon: +49 431 20084-210<br>
Telefax: +49 431 20084-222<br>
Mobil: +49 151 16353519<br>
mailto: fpertack@vater-gruppe.de<br>
<a href="http://www.vater-gruppe.de">http://www.vater-gruppe.de</a><br>
<font size="4"><br>
</font><font size="4"><br>
</font><br>
Amtsgericht Kiel, HRB 6403 <br>
Geschäftsführer:<br>
Klaus-Hinrich Vater<br>
Michael Wiese<br>
-----<br>
Diese Email enthält ggfs. vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Email irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Email. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Email sind nicht gestattet.<br>
</body></html>