Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XML-Schema erweitern

Empfohlene Antworten

Veröffentlicht

Ich hätte da mal eine Frage.

Ich habe ein XML-Schema-File und möchte dieses um einige Typen erweitern. Dafür habe ich ein neues Schema angelegt und das originale importiert.

Jetzt stoße ich aber auf ein Problem: Im original Schema gibt es eine Enumeration:

	<xsd:simpleType name="UNITS_TYPE">

		<xsd:annotation>

			<xsd:documentation>Units defined for CRD tags</xsd:documentation>

		</xsd:annotation>

		<xsd:restriction base="xsd:string">

			<xsd:enumeration value="seconds"/>

			<xsd:enumeration value="degrees"/>

			<xsd:enumeration value="inches"/>

			<xsd:enumeration value="MHz"/>

			<xsd:enumeration value="kHz"/>

		</xsd:restriction>

	</xsd:simpleType>

Ich möchte jetzt allerdings weitere Einheiten verwenden. Kann ich in meinem neuen Schema jetzt irgendwie sagen: Nimm die alte enum und für noch "Kg" hinzu? Wenn ja wie?

  • Autor

Danke. Das was meinem Wünschen da am nächsten ist wäre "Listing 9. Dependent Relationship extension attribute".

<xs:complexType name="UNITS_TYPE">

  <xs:simpleContent>

    <xs:extension base="UNITS_TYPE">

      <xs:attribute name="K" type="xs:string"/>

    </xs:extension>

  </xs:simpleContent>

</xs:complexType>

Aber dadurch wird aus einem simple-type ein complex-type - das ist auch nicht wirklich prickelnd und killt wieder andere Sachen.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.