Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
886727be
Commit
886727be
authored
11 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
image resize, xml well formed qandaset
parent
918eeae2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Doc/Ref/Screen/employee.png
+0
-0
0 additions, 0 deletions
Doc/Ref/Screen/employee.png
Doc/course.xml
+57
-2
57 additions, 2 deletions
Doc/course.xml
with
57 additions
and
2 deletions
Doc/Ref/Screen/employee.png
+
0
−
0
View replaced file @
918eeae2
View file @
886727be
15.2 KiB
|
W:
|
H:
10.3 KiB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
Doc/course.xml
+
57
−
2
View file @
886727be
...
...
@@ -677,7 +677,7 @@ drwxr-xr-x 4 goik fb1prof 4096 Nov 8 22:04 ..
</listitem>
<listitem>
<para>sex, mandatory</para>
<para>sex
(male/female)
, mandatory</para>
</listitem>
<listitem>
...
...
@@ -744,7 +744,8 @@ drwxr-xr-x 4 goik fb1prof 4096 Nov 8 22:04 ..
</qandaset>
<para>We may as well represent our current physical SQL model
graphically:</para>
graphically. The annotation <quote>(NN)</quote> denotes <quote>not
nullable</quote>:</para>
<figure xml:id="fig_GraphModelEmployee">
<title>Graphical representation of employees' model.</title>
...
...
@@ -756,6 +757,60 @@ drwxr-xr-x 4 goik fb1prof 4096 Nov 8 22:04 ..
</mediaobject>
</figure>
<para>We now turn to XML representation of data. Completely disregarding
integrity constraints we may use a so called <emphasis>well
formed</emphasis> XML file representation:</para>
<programlisting language="xml"><?xml version="1.0" encoding="UTF-8"?>
<employee>
<id>21</id>
<givenName>Bob</givenName>
<surname>Hope</surname>
<birthday>1982-07-22</birthday>
<sex>m</sex>
<email>hope@exploitation.com</email>
<phone>1123-33244</phone>
</employee></programlisting>
<qandaset defaultlabel="qanda">
<title>Well-formed XML data questions</title>
<qandadiv>
<qandaentry>
<question>
<para>Explain the meaning of the <code
language="xml">version="1.0"</code> prologue attribute.</para>
</question>
<answer>
<para>The version attribute allows for an evolving XML standard.
This way XML Parsers are still able to parse XML documents
belonging to older versions.</para>
<para>For example XML documents adhering to the (unsuccessful)
<link xlink:href="http://www.w3.org/TR/xml11/#sec-xml11">XML
1.1</link> Standard may be analyzed by a parser accordingly by
reading the prologue to apply the respective rule set.</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>Explain the meaning of <code
language="xml">encoding="UTF-8" prologue attribute. What about
other values</code> than <code>UTF-8</code> ?</para>
</question>
<answer>
<para>XML allows for choosing an encoding like <code
language="xml">encoding="US-ASCII"</code> or <code
language="xml">encoding="ISO-8859-1" for western European
countries</code>.</para>
</answer>
</qandaentry>
</qandadiv>
</qandaset>
<para>Some SQL data types are quite appropriate. We may however add
further restrictions to enhance data integrity. The attribute
<code>SEX</code> for example may be restricted to allow only 'm' and
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment