From b0e5c5c67e0fae62e1e9517a0cc50e9a250f6ef7 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Fri, 15 Mar 2002 18:15:25 +0000 Subject: [PATCH] Reorganized code --- litprog/example/doc.xweb | 108 +++++++++++++++++++++++---------------- 1 file changed, 63 insertions(+), 45 deletions(-) diff --git a/litprog/example/doc.xweb b/litprog/example/doc.xweb index 11d3d153c..5b367a726 100644 --- a/litprog/example/doc.xweb +++ b/litprog/example/doc.xweb @@ -5,66 +5,35 @@ Document Schema +

A Simple Document W3C XML Schema

-

This schema defines elements in the -urn:publicid:-:Norman+Walsh:Schema Example:EN namespace.

- -

This schema defines several elements and their complex types. +

This schema defines the +urn:publicid:-:Norman+Walsh:Schema Example:EN namespace +by defining several elements and their complex types.

- - - - - - -
- -
-

The Elements

- -

This schema defines one element of each complex -type.

+

Documents that conform to this schema have the general form:

- - - - - +
<doc xmlns="urn:publicid:-:Norman+Walsh:Schema Example:EN">
+  <title>Sample Document</title>
+  <para>Some paragraphs.</para>
+</doc>
-

The Complex Types

+

The Types

-

There are three complex types in this schema: doc, +

This schema only defines three element types: doc, title, and para.

- - - - - - -
-

The role Attribute

- -

Each of the complex types in this schema allows an optional role attribute. -The role attribute is simply a string.

- - - - -
-

The doc Type

+

This is a document.

+ @@ -80,6 +49,8 @@ The role attribute is simply a string.

The title Type

+

This is a title.

+ @@ -91,6 +62,8 @@ The role attribute is simply a string.

The para Type

+

This is a paragraph.

+ @@ -99,4 +72,49 @@ The role attribute is simply a string.

- \ No newline at end of file + +
+

The role Attribute

+ +

Each of the complex types in this schema allows an optional role attribute. +The role attribute is simply a string.

+ + + + +
+ +
+

The Elements

+ +

This schema defines one element of each complex +type.

+ + + + + + +
+ +
+

The Schema

+ +

The schema wrapper surrounds all these definitions.

+ + + + + + + + + +
+ + + + -- 2.40.0