<commit_before><?xml version="1.0" encoding="utf-8"?>
<!--
  #%L
  Bitrepository message xml definitions
  %%
  Copyright (C) 2010 - 2012 The State and University Library, The Royal Library and The State Archives, Denmark
  %%
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU Lesser General Public License as 
  published by the Free Software Foundation, either version 2.1 of the 
  License, or (at your option) any later version.
  
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Lesser Public License for more details.
  
  You should have received a copy of the GNU General Lesser Public 
  License along with this program.  If not, see
  <http://www.gnu.org/licenses/lgpl-2.1.html>.
  #L%
  -->


<!-- message-xml version: ${project.version} -->

<xs:schema
  targetNamespace="http://bitrepository.org/BitRepositoryMessages.xsd"
  attributeFormDefault="unqualified"
  elementFormDefault="qualified"

  xmlns:tn="http://bitrepository.org/BitRepositoryMessages.xsd"
  xmlns="http://bitrepository.org/BitRepositoryMessages.xsd"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bre="http://bitrepository.org/BitRepositoryElements.xsd"
>

  <xs:import schemaLocation="BitRepositoryElements.xsd" namespace="http://bitrepository.org/BitRepositoryElements.xsd" />


  <!-- Message super type definitions -->
  
  <xs:complexType name="Message">
    <xs:annotation><xs:documentation xml:lang="en">
    The Bitrepository message supper class. All message types must extend this
    type. The type defines all the common message elements 
    </xs:documentation></xs:annotation>
    <xs:sequence>
      <xs:element ref="bre:CorrelationID">
        <xs:annotation><xs:documentation xml:lang="en">
        CorrelationID is a unique identifier for communication usually on primitive level,
        e.g the IdentifyPillarsForGet part of a get operation
        </xs:documentation></xs:annotation>
      </xs:element>

      <xs:element ref="bre:CollectionID">
        <xs:annotation><xs:documentation xml:lang="en">
        BitRepositoryCollectionID is a unique identifier for bit repository collection
        which data belongs to.
        This is also the identification of decryption and keys for contents of message,
        and it is part of unique identification of files together with a file id.
        </xs:documentation></xs:annotation>
      </xs:element>

      <xs:element ref="bre:Destination">
        <xs:annotation><xs:documentation xml:lang="en">
        Identifies the destination which the message is sent to.
        </xs:documentation></xs:annotation>
      </xs:element>
      <xs:element ref="bre:ReplyTo">
        <xs:annotation><xs:documentation xml:lang="en">
        Identifies the destination any responds should be sent to.<commit_msg>BITMAG-798 - Collection settings should support multiple collection pr. installation: Refactored clients. Code compiles again.<commit_after><?xml version="1.0" encoding="utf-8"?>
<!--
  #%L
  Bitrepository message xml definitions
  %%
  Copyright (C) 2010 - 2012 The State and University Library, The Royal Library and The State Archives, Denmark
  %%
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU Lesser General Public License as 
  published by the Free Software Foundation, either version 2.1 of the 
  License, or (at your option) any later version.
  
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Lesser Public License for more details.
  
  You should have received a copy of the GNU General Lesser Public 
  License along with this program.  If not, see
  <http://www.gnu.org/licenses/lgpl-2.1.html>.
  #L%
  -->


<!-- message-xml version: ${project.version} -->

<xs:schema
  targetNamespace="http://bitrepository.org/BitRepositoryMessages.xsd"
  attributeFormDefault="unqualified"
  elementFormDefault="qualified"

  xmlns:tn="http://bitrepository.org/BitRepositoryMessages.xsd"
  xmlns="http://bitrepository.org/BitRepositoryMessages.xsd"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bre="http://bitrepository.org/BitRepositoryElements.xsd"
>

  <xs:import schemaLocation="BitRepositoryElements.xsd" namespace="http://bitrepository.org/BitRepositoryElements.xsd" />


  <!-- Message super type definitions -->
  
  <xs:complexType name="Message">
    <xs:annotation><xs:documentation xml:lang="en">
    The Bitrepository message supper class. All message types must extend this
    type. The type defines all the common message elements 
    </xs:documentation></xs:annotation>
    <xs:sequence>
      <xs:element ref="bre:CorrelationID">
        <xs:annotation><xs:documentation xml:lang="en">
        CorrelationID is a unique identifier for communication usually on primitive level,
        e.g the IdentifyPillarsForGet part of a get operation
        </xs:documentation></xs:annotation>
      </xs:element>

      <xs:element ref="bre:CollectionID" minOccurs="0" >
        <xs:annotation><xs:documentation xml:lang="en">
        The CollectionID is a unique identifier for bit repository collection
        which data belongs to.
        This is also the identification of decryption and keys for contents of message,
        and it is part of unique identification of files together with a file id. Note that the
        </xs:documentation></xs:annotation>
      </xs:element>

      <xs:element ref="bre:Destination">
        <xs:annotation><xs:documentation xml:lang="en">
        Identifies the destination which the message is sent to.
        </xs:documentation></xs:annotation>
      </xs:element>
      <xs:element ref="bre:ReplyTo">
        <xs:annotation><xs:documentation xml:lang="en">
        Identifies the destination any responds should be sent to.
{'fraction_non_alphanumeric': 0.10114534602355219, 'fraction_numerical': 0.008711082432650428, 'mean_word_length': 3.769230769230769, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 2, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 26}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '128049', 'n_tokens_mistral': 1722, 'n_tokens_neox': 1629, 'n_words': 561}