Skip to content
Snippets Groups Projects
Commit e5a58599 authored by Goik Martin's avatar Goik Martin
Browse files

book v1 --> XSD

parent 0685991a
No related branches found
No related tags found
No related merge requests found
<!-- $Id: book.dtd 177 2006-11-01 16:36:30Z goik $ -->
<!ELEMENT book (title, chapter+)>
<!ELEMENT chapter (title, para+)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT para (#PCDATA)>
\ No newline at end of file
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" elementFormDefault="qualified"
vc:minVersion="1.0" vc:maxVersion="1.1">
<xs:element name="book">
<xs:complexType>
<xs:sequence>
<xs:element ref="title"/>
<xs:element ref="chapter" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="title" type="xs:string"/>
<xs:element name="chapter">
<xs:complexType>
<xs:sequence>
<xs:element ref="title"/>
<xs:element ref="para" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="para" type="xs:string"/>
</xs:schema>
<!--
<!ELEMENT book (title, chapter+)>
<!ELEMENT chapter (title, para+)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT para (#PCDATA)>
-->
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: book2insert.xsl 177 2006-11-01 16:36:30Z goik $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- Overriding XSL's default output type html by text -->
<xsl:output method="text"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: java.xml 177 2006-11-01 16:36:30Z goik $ -->
<!DOCTYPE book SYSTEM "book.dtd">
<book>
<book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="book.xsd">
<title>Introduction to Java</title>
<chapter>
<title>Introduction</title>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment