Übung XML Book Namespacehttps://www.golabs.ch/education/xml/jexm/resources/xml/bookns?&atomFri, 29 Mar 2024 15:06:08 +0000stack.ch
https://stack.ch/
df130854-eddd-11ee-8c11-005056bb85fbSimtech AG - Ausbildung - XML - Kurs XML Einführung JEXM - Kurs XML Einführung - Ressourcen - Kurs XML Einführung - Übungen - Übung XML Book Namespace
https://www.golabs.ch/education/xml/jexm/resources/xml/bookns
df1309a7-eddd-11ee-8c11-005056bb85fbFri, 29 Mar 2024 15:06:08 +0000Übung XML Book Namespace
https://www.golabs.ch/education/xml/jexm/resources/xml/bookns
df130ad3-eddd-11ee-8c11-005056bb85fbFri, 29 Mar 2024 15:06:08 +0000
https://www.golabs.ch/education/xml/jexm/resources/xml/bookns
df130bd4-eddd-11ee-8c11-005056bb85fbFri, 29 Mar 2024 15:06:08 +0000Wir möchten unser XML Dokument mit einem Namespace versehen. Als Vorlage dient uns das folgenden Book Dokument:<?xml version="1.0" encoding="UTF-8"?>
<document>
<book>
<title>XSLT</title>
<author>Michael Kay</author>
<publisher>Wrox Press Ltd.</publisher>
<isbn>1-861003-12-9</isbn>
</book>
<book>
<title>XML and Java</title>
<author>Hiroshi Maruyama</author>
<author>Kent Tamura</author>
<author>Naohiko Uramoto</author>
<publisher>Addison Wesley</publisher>
<isbn>0201485435</isbn>
</book>
<book>
<title>Java and XML</title>
<author>Brett McLaughlin</author>
<author>Mike Loukides</author>
<publisher>O'Reilly</publisher>
<isbn>0596000162</isbn>
</book>
</document>
https://www.golabs.ch/education/xml/jexm/resources/xml/bookns
df130f2e-eddd-11ee-8c11-005056bb85fbFri, 29 Mar 2024 15:06:08 +0000Erstellen Sie im Visual Code Editor das Book Dokument gemäss dem zuvor angegebenen Listing.Definieren Sie einen Namespace gemäss dem folgenden Listing und passen Sie die Element entsprechend an, so dass das Dokument gültig ist. <?xml version="1.0" encoding="UTF-8"?>
<b:document xmlns:b="https://www.simtech-ag.ch/education/xml/jexm">
<b:book>
<b:title>XSLT</b:title>
...
</b:book>
</b:document>Eine mögliche Lösung finden Sie hier.
https://www.golabs.ch/education/xml/jexm/resources/xml/bookns
df131553-eddd-11ee-8c11-005056bb85fbFri, 29 Mar 2024 15:06:08 +0000Erstellen Sie optional ein XML Schema zum Namespaced Dokument z.B. via Visual Code Generator. Das generrierte XML Schema funktioniert leider nicht ohne manuelle Anpassungen auf beiden Dokumenten:Angepasstes Book XML Schema:<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://www.simtech-ag.ch/education/xml/jexm"
elementFormDefault="qualified">
<xs:element name="document">
<xs:complexType>
<xs:sequence>
<xs:element name="book" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string" />
<xs:element name="author" maxOccurs="unbounded" type="xs:string" />
<xs:element name="publisher" type="xs:string" />
<xs:element name="isbn" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>Angepasstes XML Dokument:<?xml version="1.0" encoding="UTF-8"?>
<b:document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.simtech-ag.ch/education/xml/jexm bookns.xsd"
xmlns:b="https://www.simtech-ag.ch/education/xml/jexm">
<b:book>
<b:title>XSLT</b:title>
<b:author>Michael Kay</b:author>
<b:publisher>Wrox Press Ltd.</b:publisher>
<b:isbn>1-861003-12-9</b:isbn>
</b:book>
<b:book>
<b:title>XML and Java</b:title>
<b:author>Hiroshi Maruyama</b:author>
<b:author>Kent Tamura</b:author>
<b:author>Naohiko Uramoto</b:author>
<b:publisher>Addison Wesley</b:publisher>
<b:isbn>0201485435</b:isbn>
</b:book>
<b:book>
<b:title>Java and XML</b:title>
<b:author>Brett McLaughlin</b:author>
<b:author>Mike Loukides</b:author>
<b:publisher>O'Reilly</b:publisher>
<b:isbn>0596000162</b:isbn>
</b:book>
</b:document>Über uns
https://www.golabs.ch/about
Fri, 29 Mar 2024 15:06:08 +0000df131c4e-eddd-11ee-8c11-005056bb85fbAktuell
https://www.golabs.ch/
Fri, 29 Mar 2024 15:06:08 +0000df131cee-eddd-11ee-8c11-005056bb85fbAGB
https://www.golabs.ch/agb
Fri, 29 Mar 2024 15:06:08 +0000df131de9-eddd-11ee-8c11-005056bb85fbBildungswege
https://www.golabs.ch/bildungswege
Fri, 29 Mar 2024 15:06:08 +0000df131e80-eddd-11ee-8c11-005056bb85fbBlog
https://www.golabs.ch/blog
Fri, 29 Mar 2024 15:06:08 +0000df131f44-eddd-11ee-8c11-005056bb85fbRufen Sie mich an
https://www.golabs.ch/callus
Fri, 29 Mar 2024 15:06:08 +0000df132063-eddd-11ee-8c11-005056bb85fbCharts
https://www.golabs.ch/charts
Fri, 29 Mar 2024 15:06:08 +0000df13210f-eddd-11ee-8c11-005056bb85fbConsulting
https://www.golabs.ch/consulting
Fri, 29 Mar 2024 15:06:08 +0000df1321a6-eddd-11ee-8c11-005056bb85fbKontakt
https://www.golabs.ch/contact
Fri, 29 Mar 2024 15:06:08 +0000df132237-eddd-11ee-8c11-005056bb85fbAusbildung/Kurse
https://www.golabs.ch/education
Fri, 29 Mar 2024 15:06:08 +0000df1322c8-eddd-11ee-8c11-005056bb85fbSoftware Engineering
https://www.golabs.ch/engineering
Fri, 29 Mar 2024 15:06:08 +0000df13235f-eddd-11ee-8c11-005056bb85fbFreelancer
https://www.golabs.ch/freelancer
Fri, 29 Mar 2024 15:06:08 +0000df1323f2-eddd-11ee-8c11-005056bb85fbImpressum
https://www.golabs.ch/impressum
Fri, 29 Mar 2024 15:06:08 +0000df13247b-eddd-11ee-8c11-005056bb85fbKursleiter
https://www.golabs.ch/kursleiter
Fri, 29 Mar 2024 15:06:08 +0000df132511-eddd-11ee-8c11-005056bb85fbNetzwerk
https://www.golabs.ch/network
Fri, 29 Mar 2024 15:06:08 +0000df13259d-eddd-11ee-8c11-005056bb85fbReferenzen
https://www.golabs.ch/references
Fri, 29 Mar 2024 15:06:08 +0000df13262a-eddd-11ee-8c11-005056bb85fbSitemap
https://www.golabs.ch/sitemap
Fri, 29 Mar 2024 15:06:08 +0000df1326bd-eddd-11ee-8c11-005056bb85fbTools
https://www.golabs.ch/tools
Fri, 29 Mar 2024 15:06:08 +0000df132759-eddd-11ee-8c11-005056bb85fbVision
https://www.golabs.ch/vision
Fri, 29 Mar 2024 15:06:08 +0000df1327e1-eddd-11ee-8c11-005056bb85fb