[Standards-JIG] UPDATED: JEP-0055 (Jabber Searching)

Barry Latimer LatimerB at startcorp.com
Mon Mar 22 21:38:49 UTC 2004


Just had a quick look at this JEP and realised that the XML Schema is incorrect.

The query element needs an "ANY" element added to it otherwise the Example 7 is not "valid" xml.

Also shouldn't the elements
- first 
- last
- nick
....

include the xml:lang attribute to help define search terms in different languages ?

So i think that the schema should look like

<?xml version='1.0' encoding='UTF-8'?>

<xs:schema
    xmlns:xs='http://www.w3.org/2001/XMLSchema'
    targetNamespace='jabber:iq:search'
    xmlns='jabber:iq:search'
    elementFormDefault='qualified'>

  <xs:annotation>
    <xs:documentation>
      The protocol documented by this schema is defined in
      JEP-0055: http://www.jabber.org/jeps/jep-0055.html
    </xs:documentation>
  </xs:annotation>

  <xs:element name='query'>
    <xs:complexType>
      <xs:choice>
        <xs:sequence minOccurs='0' maxOccurs='1'>
          <xs:element name='instructions' type='localizedstring' minOccurs='0'/>
          <xs:element name='first' type='localizedstring' minOccurs='0'/>
          <xs:element name='last' type='localizedstring' minOccurs='0'/>
          <xs:element name='nick' type='localizedstring' minOccurs='0'/>
          <xs:element name='email' type='localizedstring' minOccurs='0'/>
        <xs:sequence>
        <xs:element ref='item' minOccurs='0' maxOccurs='unbounded'/>
        <xs:any namespace='##other' minOccurs='0' maxOccurs='unbounded' />
      </xs:choice>
    </xs:complexType>
  </xs:element>

  <xs:element name='item'>
    <xs:complexType>
      <xs:sequence>
        <xs:element name='first' type='localizedstring' minOccurs='0'/>
        <xs:element name='last' type='localizedstring' minOccurs='0'/>
        <xs:element name='nick' type='localizedstring' minOccurs='0'/>
        <xs:element name='email' type='localizedstring' minOccurs='0'/>
      <xs:sequence>
      <xs:attribute name='jid' type='xs:string' use='required'/>
    </xs:complexType>
  </xs:element>

   <xs:element name='localizedstring'>
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="xs:string">
                    <xs:attribute ref='xml:lang' use='optional' />
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
</xs:schema>




-----Original Message-----
From: Peter Saint-Andre [mailto:stpeter at jabber.org]
Sent: Tuesday, 23 March 2004 8:07 AM
To: standards-jig at jabber.org
Subject: [Standards-JIG] UPDATED: JEP-0055 (Jabber Searching)


As requested, I've updated JEP-0055 (Jabber Searching) to clarify the
scope. The changelog for version 1.2 is:

   Clarified scope (searching of any information repository, not just
   user directories); added search and result examples to the
   extensibility section. (psa)

http://www.jabber.org/jeps/jep-0055.html

Peter

-- 
Peter Saint-Andre
Jabber Software Foundation
http://www.jabber.org/people/stpeter.php

_______________________________________________
Standards-JIG mailing list
Standards-JIG at jabber.org
https://jabberstudio.org/mailman/listinfo/standards-jig



More information about the Standards mailing list