Ankündigung

Einklappen
Keine Ankündigung bisher.

Kommentierte visu_config.xsd für die Comet-Visu

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Kommentierte visu_config.xsd für die Comet-Visu

    Hi,

    ich habe mir mal die Mühe gemacht, die visu_config.xsd zu kommentieren und Werthilfen für alle Attribute anzulegen (über annotation/documentation), da mein xml-Editor das unterstützt.

    Da ich eher ein "occasional user" bin, habe ich keine lust, jedesmal in der Doku zu schauen, wie die Tags heissen und welche Attribute bzw. Werte sie haben. Ich würde das gerne zur Verfügung stellen, wenn Bedarf besteht. Das Ursprungs-xsd hab ich aus dem aktuellen svn, deswegen wird es für den released Stand nicht passen.

    Ich bin auch an Vorschlägen interssiert, ob und wie man das xsd in den Standard aufnehmen könnte.

    Unten 3 Beispiele, wie das Ganze in einem xml-Editor aussieht, der das unterstützt.

    Gruß, Waldemar
    Angehängte Dateien
    OpenKNX www.openknx.de

    #2
    Verstehe ich das richtig, dass bei jedem Element lediglich noch ein
    Code:
        <xsd:annotation>
          <xsd:documentation>
            [...]
          </xsd:documentation>
        </xsd:annotation>
    hinzu kommt? (Ist das nach dem xsd-Standard allgemein definiert?)

    Wenn ja: wieso nicht?

    Welchen Editor verwendest Du?
    TS2, B.IQ, DALI, WireGate für 1wire so wie Server für Logik und als KNX Visu die CometVisu auf HomeCockpit Minor. - Bitte keine PNs, Fragen gehören in das Forum, damit jeder was von den Antworten hat!

    Kommentar


      #3
      Hallo Chris,

      an den meisten Stellen war es "nur" ein hinzufügen von
      Code:
          <xsd:annotation>
            <xsd:documentation>
              [...]
            </xsd:documentation>
          </xsd:annotation>
      Für die Aufzählungen von Attributwerten habe ich aber teilweise zusätzliche Typen definieren müssen wie z.B. für den mode bei address:
      Code:
      [FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff] <[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:attribute[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#ff0000][FONT=Consolas][SIZE=2][COLOR=#ff0000][FONT=Consolas][SIZE=2][COLOR=#ff0000]name[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][/FONT][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]mode[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][/FONT][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]   <[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:annotation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]     <[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:documentation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2]       Zugriffsrichtung über diese Adresse.[/SIZE][/FONT]
      [/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]     </[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:documentation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]   </[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:annotation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]   <[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:simpleType[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]     <[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:restriction[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#ff0000][FONT=Consolas][SIZE=2][COLOR=#ff0000][FONT=Consolas][SIZE=2][COLOR=#ff0000]base[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][/FONT][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]xsd:string[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][/FONT][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]       <[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:enumeration[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#ff0000][FONT=Consolas][SIZE=2][COLOR=#ff0000][FONT=Consolas][SIZE=2][COLOR=#ff0000]value[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][/FONT][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]read[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][/FONT][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]         <[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:annotation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]           <[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:documentation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2]             Von der Adresse wird gelesen.[/SIZE][/FONT]
      [/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]           </[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:documentation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]         </[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:annotation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]       </[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:enumeration[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]       <[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:enumeration[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#ff0000][FONT=Consolas][SIZE=2][COLOR=#ff0000][FONT=Consolas][SIZE=2][COLOR=#ff0000]value[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][/FONT][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]write[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][/FONT][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]         <[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:annotation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]           <[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:documentation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2]             Die Adresse wird beschrieben.[/SIZE][/FONT]
      [/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]           </[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:documentation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]         </[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:annotation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]       </[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:enumeration[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]       <[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:enumeration[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#ff0000][FONT=Consolas][SIZE=2][COLOR=#ff0000][FONT=Consolas][SIZE=2][COLOR=#ff0000]value[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][/FONT][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]readwrite[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2][COLOR=#000000]"[/COLOR][/SIZE][/FONT][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]         <[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:annotation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]           <[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:documentation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2]             Adresse mit Schreib-Lesezugriff.[/SIZE][/FONT]
      [/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]           </[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:documentation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]         </[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:annotation[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]       </[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:enumeration[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]     </[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:restriction[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff]   </[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:simpleType[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [SIZE=2][FONT=Consolas][COLOR=#0000ff] </[/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]xsd:attribute[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
      [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT]
      Dann gibt es noch 2 oder 3 komplexere Stellen (z.B. für das format-Attribut), bei denen quasi beliebige Formatierungsstrings zugelassen sind, ich aber die üblichsten Formate trotzdem als Werthilfe haben wollte. So etwas geht dann über union von xsd:string und der spezifischen Aufzählung.

      annotation und documentation sind Teil des xsd-Standards (schon von Anfang an), werden wohl auch von vielen Editoren verstanden. Ich selber benutze als Editor Eclipse oder MS Visual Studio (der ist noch einen Tick besser als Eclipse beim Editieren von XML). Am besten kann es oxygen, der ist aber kostenpflichtig.

      Falls ihr das weiter verwenden wollt, würde ich mir nochmal die Mühe machen, das mit dem aktuellsten xsd aus dem trunc zu mergen und auch schauen, dass garantiert die demo_config dagegen validiert.
      Dann müsstest Du mir noch sagen, wie es dann weitergeht, damit das ins SVN kommt.
      Ich bin auch gerne bereit, zukünftig neue Elemente und Attribute nachzukommentieren, da es auch in meinem Interesse ist, kommentierte Elemente im Editor zu sehen.
      Theoretisch könnte auch der zukünftige CometVisu-Editor diese Texte als Hilfetexte nutzen...

      Gruß, Waldemar
      OpenKNX www.openknx.de

      Kommentar


        #4
        Zitat von mumpf Beitrag anzeigen
        Theoretisch könnte auch der zukünftige CometVisu-Editor diese Texte als Hilfetexte nutzen...
        Ich schicke gleich mal vorweg das die ganze XML+XSD-Nummer für mich hinter 17 böhmischen Dörfern liegt.. Aber:

        Das klingt sinnvoll, einen kleinen Tipp (Link/Hint reicht) wie man ein XSD "über" einem XML in JS "richtig" verwendet? Präferiert natürlich in Richtung jQuery..

        Makki

        P.S: Installiere mir trotz ausgeprägter Java-Allergie gerade mal wieder dieses komische Eclipse, in der Hoffnung auf irgendeinen brauchbaren XML-Editor, sonst hab ich nämlich auch noch keinen gefunden, der auch nur irgendwas besser als Notepad machen würde
        EIB/KNX & WireGate & HS3, Russound,mpd,vdr,DM8000, DALI, DMX
        -> Bitte KEINE PNs!

        Kommentar


          #5
          Hi makki,

          ich bin auch nicht so der super erfahrene in XSD/XML, hatte nur letztens beruflich damit zu tun und habe eigentlich ein XSD nur erstellt, weil ich "fremde" XML's einlesen musste und diese einfach verifizieren wollte.

          Bei dem ganzen Rumspielen habe ich dann festgestellt, dass ich beim editieren vom XML Werthilfen für "mein" Dokumentenformat bekam (das ist eindeutig schon besser als notepad). Dann hab ich mal nachgeschaut, was man noch im XSD machen kann, damit die Werthilfen sinnvoller werden und so kam ich auf die Dokumentation.

          Ich musste in eclipse (neueste Version, Indigo) nichts spezielles machen, bei mir heissen das XSD und das XML-File einfach gleich (also z.B. visu_config.xsd und visu_config.xml) und stehen im gleichen Verzeichnis. Wenn das so nicht klappt, würde ich nochmal schauen. Beim Visual Studio hat jedes XML-File eine (vom Visula Studio verwaltete) "Schema"-Eigenschaft, die man mit dem Filename des XSD belegen kann.

          Bei jQuery etc. weiß ich einfach nichts, hab ich noch nie verwendet (ausser für ein paar Änderungen in der CometVisu), aber das Einzige, was ich mir noch vorstellen könnte, was es geben könnte, ist ein Generator, der aus dem XSD einen Parser für das XML generiert. Zumindest gibt es so was für Java, C#, Visual Basic und C++, ob es das für JavaScript bzw. jQuery gibt, weiss ich nicht.

          Aber mit eclipse sollte das Editieren des XML mit Hilfe eines XSD schon besser klappen, und das out-of-the box.

          Gruß, Waldemar
          OpenKNX www.openknx.de

          Kommentar


            #6
            Zitat von mumpf Beitrag anzeigen
            [...]annotation und documentation sind Teil des xsd-Standards[...]
            OK, dann macht das auch in unserem XSD Sinn
            Zitat von mumpf Beitrag anzeigen
            Falls ihr das weiter verwenden wollt, würde ich mir nochmal die Mühe machen, das mit dem aktuellsten xsd aus dem trunc zu mergen und auch schauen, dass garantiert die demo_config dagegen validiert.
            Dann müsstest Du mir noch sagen, wie es dann weitergeht, damit das ins SVN kommt.
            Sehr gut. Ich würde dann jedoch Englisch bevorzugen, da dass ja die Projektsprache ist (können die Annotations auch multilingual sein?)

            In's SVN kommt's (für mich...) am einfachsten, wenn Du mir Deinen SourceForge-Accountnamen schickst und ich Dich freischalte...
            Zitat von mumpf Beitrag anzeigen
            Theoretisch könnte auch der zukünftige CometVisu-Editor diese Texte als Hilfetexte nutzen...
            Wahrscheinlich macht's mehr Sinn das umzudrehen um nur eine authorative Stelle zu haben:
            Im JavaScript Source möchte ich die Hilfe-Texte für den Editor mit hinterlegen - und dann könnte man in Zukunft (irgendwie...) aus dem JavaScript die XSD automatisiert erstellen...
            TS2, B.IQ, DALI, WireGate für 1wire so wie Server für Logik und als KNX Visu die CometVisu auf HomeCockpit Minor. - Bitte keine PNs, Fragen gehören in das Forum, damit jeder was von den Antworten hat!

            Kommentar


              #7
              Hi Chris,

              sorry für die späte antwort, hab Dein letztes Update irgendwie übersehen.

              Zitat von Chris M. Beitrag anzeigen
              Ich würde dann jedoch Englisch bevorzugen, da dass ja die Projektsprache ist (können die Annotations auch multilingual sein?)
              Englisch können wir auch machen, eher wohl (D)Englisch, wenn ich meine Kenntnisse zugrunde lege, aber es kann ja jeder nachbessern .
              Allerdings heisst das für mich, es quasi komplett neu zu schreiben, was ich gerne erst kurz vor dem nächsten Release machen würde, da sich bis dahin das XSD wohl noch massiv ändern wird. Da bräuchte ich einen "Anstupser", wenn ihr meint, dass das Nächste Release in Sichtweite ist.

              Kommentare im XSD gehen multilingual, aber ich weill nicht, ob das die XML-Editoren auswerten -> werde ich mal testen.

              Zitat von Chris M. Beitrag anzeigen
              Im JavaScript Source möchte ich die Hilfe-Texte für den Editor mit hinterlegen - und dann könnte man in Zukunft (irgendwie...) aus dem JavaScript die XSD automatisiert erstellen...
              Können wir gerne auch so machen... wenn der Editor allerdings perfekt funktioniert, dann braucht man kein dokumentiertes XSD mehr... ich würde dann ja auch den Editor nutzen...

              Gruß, Waldemar
              OpenKNX www.openknx.de

              Kommentar


                #8
                Zitat von mumpf Beitrag anzeigen
                Englisch können wir auch machen, eher wohl (D)Englisch, wenn ich meine Kenntnisse zugrunde lege, aber es kann ja jeder nachbessern .
                Das wird sich schon hin iterieren...
                Zitat von mumpf Beitrag anzeigen
                Allerdings heisst das für mich, es quasi komplett neu zu schreiben, was ich gerne erst kurz vor dem nächsten Release machen würde, da sich bis dahin das XSD wohl noch massiv ändern wird. Da bräuchte ich einen "Anstupser", wenn ihr meint, dass das Nächste Release in Sichtweite ist.
                Für mich ist die XML-Syntax inzwischen weitestgehend fertig. Die XSD ist aber noch nicht nachgezogen...

                Bzgl. der XSD-Kommentare dürfte das aber nicht so tragisch sein, es waren ja eher Verschiebungen als radikale Änderungen, d.h. die Blindleistung wäre überschaubar. Ich kann aber verstehen, wenn Du lieber auf etwas mehr reife wartest.
                Evtl. schau ich nachher mal, ob ich die XDS etwas mehr auf Stand bringen kann.
                Zitat von mumpf Beitrag anzeigen
                Kommentare im XSD gehen multilingual, aber ich weill nicht, ob das die XML-Editoren auswerten -> werde ich mal testen.

                Zitat von mumpf Beitrag anzeigen
                Können wir gerne auch so machen... wenn der Editor allerdings perfekt funktioniert, dann braucht man kein dokumentiertes XSD mehr... ich würde dann ja auch den Editor nutzen...
                So sehr wir auch versuchen den Editor mit den Informationen live aus dem Source zu versorgen um Redundanzen zu vermeiden, wird wohl auch in Zukunft bei der SVN-Version der Editor immer wieder mal broken sein. Man muss sich halt immer wieder für Henne oder Ei entscheiden. Egal was man zu erst macht, es wird übergangsweise prinzipbedingt nicht zusammenpassen...
                => Ich sehe eine gut gepflegte XSD durchaus für wertig an
                TS2, B.IQ, DALI, WireGate für 1wire so wie Server für Logik und als KNX Visu die CometVisu auf HomeCockpit Minor. - Bitte keine PNs, Fragen gehören in das Forum, damit jeder was von den Antworten hat!

                Kommentar


                  #9
                  Zitat von Chris M. Beitrag anzeigen
                  Evtl. schau ich nachher mal, ob ich die XSD etwas mehr auf Stand bringen kann.
                  So, die aktuelle Demo-Config-Datei läuft bei der jetzt aktuellen XSD wieder ohne Fehler durch
                  (Nebenbei habe ich die Ausgabe vom Check-Skript deutlich aufgewertet)

                  Übrigens: die XSD könnte mal ein refactoring gebrauchen. Dann könnte man in Zukunft noch besser und leichter den jeweils aktuellen Stand nachziehen...
                  TS2, B.IQ, DALI, WireGate für 1wire so wie Server für Logik und als KNX Visu die CometVisu auf HomeCockpit Minor. - Bitte keine PNs, Fragen gehören in das Forum, damit jeder was von den Antworten hat!

                  Kommentar


                    #10
                    Zitat von Chris M. Beitrag anzeigen
                    Übrigens: die XSD könnte mal ein refactoring gebrauchen. Dann könnte man in Zukunft noch besser und leichter den jeweils aktuellen Stand nachziehen...
                    OK, Hinweis verstanden
                    Ich kann mir das ja mal ansehen, ich hatte schon für die letzte doku ein paar Sachen rausziehen müssen. Ich kann zwar erst ab Donnerstag wieder meinem Hobby nachgehen, aber dann schau ich mal rein.

                    Gruß, Waldemar
                    OpenKNX www.openknx.de

                    Kommentar


                      #11
                      Das wär cool, ich verstehe am liebsten anhand guter/richtiger (!) Beispiele, für den Editor&Doku - automatisch (derzeit thinking-about-work-in-progress) wäre das echt gut!

                      Makki
                      EIB/KNX & WireGate & HS3, Russound,mpd,vdr,DM8000, DALI, DMX
                      -> Bitte KEINE PNs!

                      Kommentar


                        #12
                        Ich möchte den Thread nochmal aufgreifen.

                        Ich verwende den Editor Sublime 3 (Beta) kann ich dort die visu_config.xsd verwenden ?

                        Kommentar


                          #13
                          Zitat von milymat Beitrag anzeigen
                          Ich verwende den Editor Sublime 3 (Beta) kann ich dort die visu_config.xsd verwenden ?
                          Der Editor ist mir leider unbekannt, aber am einfachsten nimmst du dir die p, li { white-space: pre-wrap; } visu_config.xml aus dem Release. Dort ist das Schema richtig hinterlegt. Wenn dein Editor Syntax-Vorschläge unterstützt bzw. Hilfetexte anzeigt, dann passt es.
                          Grüße
                          Michael

                          Kommentar


                            #14
                            Habs probiert, es funktioniert.

                            Danke

                            Kommentar

                            Lädt...
                            X