From 9f12b6804c5f5aae96c2bc61f31366bd18832aee Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Sun, 18 Oct 2015 18:05:20 +0200 Subject: [PATCH] Exercise related hints --- Doc/Sda1/xmlschema.xml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Doc/Sda1/xmlschema.xml b/Doc/Sda1/xmlschema.xml index d0583b5bd..1f0d40cdc 100644 --- a/Doc/Sda1/xmlschema.xml +++ b/Doc/Sda1/xmlschema.xml @@ -775,11 +775,29 @@ public class Memo { <para>Represent the relational schema being described in <xref linkend="invoiceSqlDdl"/> by an XML Schema and provide an appropriate example instance. Try to resemble the relational - schema as close as possible.</para> + schema as close as possible. A possible roadmap:</para> + + <orderedlist> + <listitem> + <para>Collect all relational constraints and write them down + informally.</para> + </listitem> + + <listitem> + <para>Start from a (just) well-formed <xref + linkend="glo_XML"/> document which allows for entering data + corresponding to the relational model.</para> + </listitem> + + <listitem> + <para>Add an <xref linkend="glo_XSD"/> schema file providing + all constraints from your relational model.</para> + </listitem> + </orderedlist> </question> <answer> - <para>A possible schema implementation:</para> + <para>A possible schema implementation reads:</para> <programlisting language="xml"><?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" -- GitLab