Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [xml schema] rozgałęzienie
Forum PHP.pl > Forum > Przedszkole
nieraczek
aktualnie "zestawienie_wyjazdów" rozgałęzia mi się na: "wyjazd" i "wyjazd2", a ja chcę żeby było "wyjazd" i "wyjazd":

obrazek

Co mam zmienić w kodzie:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  3.      <xs:element name="karta_samochodu">
  4.            <xs:complexType>
  5.                  <xs:sequence>
  6.                        <xs:element name="miejscowosc_i_data" type="xs:string"/>
  7.                        <xs:element name="dane_samochodu">
  8.                              <xs:complexType>
  9.                                    <xs:sequence>
  10.                                          <xs:element name="numer_katalogowy" type="xs:integer"/>
  11.                                          <xs:element name="marka" type="xs:string"/>
  12.                                          <xs:element name="model" type="xs:string"/>
  13.                                    </xs:sequence>
  14.                              </xs:complexType>
  15.                        </xs:element>
  16.                        <xs:element name="dane_uzytkownika">
  17.                              <xs:complexType>
  18.                                    <xs:sequence>
  19.                                          <xs:element name="identyfikator" type="xs:integer"/>
  20.                                          <xs:element name="imie" type="xs:string"/>
  21.                                          <xs:element name="nazwisko" type="xs:string"/>
  22.                                          <xs:element name="stanowisko" type="xs:string"/>
  23.                                    </xs:sequence>
  24.                              </xs:complexType>
  25.                        </xs:element>
  26.                        <xs:element name="zestawienie_wyjazdow">
  27.                              <xs:complexType>
  28.                                    <xs:sequence>
  29.                                          <xs:element name="wyjazd">
  30.                                                <xs:complexType>
  31.                                                      <xs:sequence>
  32.                                                            <xs:element name="lp" type="xs:integer"/>
  33.                                                            <xs:element name="przebieg" type="xs:decimal"/>
  34.                                                            <xs:element name="miejsce_wyjazdu" type="xs:string"/>
  35.                                                            <xs:element name="cel_podrozy" type="xs:string"/>
  36.                                                      </xs:sequence>
  37.                                                </xs:complexType>
  38.                                          </xs:element>
  39.                                          <xs:element name="wyjazd2">
  40.                                                <xs:complexType>
  41.                                                      <xs:sequence>
  42.                                                            <xs:element name="lp" type="xs:integer"/>
  43.                                                            <xs:element name="przebieg" type="xs:decimal"/>
  44.                                                            <xs:element name="miejsce_wyjazdu" type="xs:string"/>
  45.                                                            <xs:element name="cel_podrozy" type="xs:string"/>
  46.                                                      </xs:sequence>
  47.                                                </xs:complexType>
  48.                                          </xs:element>
  49.                                    </xs:sequence>
  50.                              </xs:complexType>
  51.                        </xs:element>
  52.                        <xs:element name="daty_pobrania_i_zwrotu_auta">
  53.                              <xs:complexType>
  54.                                    <xs:sequence>
  55.                                          <xs:element name="data_i_godzina_pobrania_auta" type="xs:date"/>
  56.                                          <xs:element name="data_i_godzina_zwrotu_auta" type="xs:date"/>
  57.                                    </xs:sequence>
  58.                              </xs:complexType>
  59.                        </xs:element>
  60.                        <xs:element name="nazwiska_wydajacego_i_zwracajacego">
  61.                              <xs:complexType>
  62.                                    <xs:sequence>
  63.                                          <xs:element name="samochod_wydal" type="xs:string"/>
  64.                                          <xs:element name="samochod_odebral" type="xs:string"/>
  65.                                    </xs:sequence>
  66.                              </xs:complexType>
  67.                        </xs:element>
  68.                  </xs:sequence>
  69.            </xs:complexType>
  70.      </xs:element>
  71. </xs:schema>
misiek172
jak to co masz zrobić biggrin.gif

zamień w kodzie

<xs:element name="wyjazd2">

na

<xs:element name="wyjazd">
nieraczek
hehheeh to by było zbyt proste biggrin.gif Problem w tym, że jak zamienie na "wyjazd" to będzie 2 razy "wyjazd" i podczas walidacji wyskoczy błąd - trzeba coś zmienić w tym:
  1. xs:element name=


żeby można było 2 razy wstawić "wyjazd", tylko co ?
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.