Re: XMLSchema

From: Fred Moyer <fred(at)redhotpenguin(dot)com>
To: josh(at)agliodbs(dot)com
Cc: Steven Ericsson-Zenith <steven(at)semeiosis(dot)com>, SF PostgreSQL <sfpug(at)postgresql(dot)org>
Subject: Re: XMLSchema
Date: 2005-06-23 01:46:04
Message-ID: 42BA145C.8050603@redhotpenguin.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: sfpug

>
> So XSD is the replacement for XLST? Or something else?
>

XSD defines schema. Here's an example from the Krang CMS of an xsd
document which defines a user schema. (http://krang.sourceforge.net)

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by rth77
(rth77) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified" attributeFormDefault="unqualified">
<xs:element name="user">
<xs:annotation>
<xs:documentation>Krang User Object</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="user_id" type="xs:int"/>
<xs:element name="login" type="xs:string"/>
<xs:element name="password" type="xs:string"/>
<xs:element name="first_name" type="xs:string"/>

<xs:element name="last_name" type="xs:string"/>
<xs:element name="email" type="xs:string"/>
<xs:element name="phone" type="xs:string"/>
<xs:element name="mobile_phone" type="xs:string"/>
<xs:element name="hidden" type="xs:int" minOccurs="0"
maxOccurs="1"/>
<xs:element name="group_id" type="xs:int" minOccurs="1"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

In response to

Browse sfpug by date

  From Date Subject
Next Message Steven Ericsson-Zenith 2005-06-23 02:17:53 Re: XMLSchema
Previous Message Josh Berkus 2005-06-23 00:22:17 Upcoming meetings