Update of /cvsroot/fink/web/xml/news
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32448/news
Added Files:
news.xsd
Log Message:
This is my first attempt at a schema instead of a DTD. I will try to learn XSLT
as
well. I think it is time we started working on this. Hopefully this is
motivation
to more than myself.
--- NEW FILE: news.xsd ---
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="news">
<xs:complexType>
<xs:sequence>
<xs:element ref="cvsid"/>
<xs:element maxOccurs="unbounded" ref="newsitem"/>
</xs:sequence>
<xs:attribute name="fsroot" use="required"/>
<xs:attribute name="lang" use="required" type="xs:NCName"/>
</xs:complexType>
</xs:element>
<xs:element name="cvsid" type="xs:string"/>
<xs:element name="newsitem">
<xs:complexType>
<xs:sequence>
<xs:element ref="date"/>
<xs:element minOccurs="0" ref="headline"/>
<xs:element ref="body"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="date" type="xs:NMTOKEN"/>
<xs:element name="headline" type="xs:string"/>
<xs:element name="body">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element ref="codeblock"/>
<xs:element ref="p"/>
<xs:element ref="ul"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="codeblock" type="xs:string"/>
<xs:element name="p">
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="em"/>
<xs:element ref="code"/>
<xs:element ref="extlink"/>
<xs:element ref="link"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="code" type="xs:string"/>
<xs:element name="extlink">
<xs:complexType mixed="true">
<xs:attribute name="url" use="required" type="xs:anyURI"/>
</xs:complexType>
</xs:element>
<xs:element name="link">
<xs:complexType mixed="true">
<xs:attribute name="url" use="required" type="xs:anyURI"/>
</xs:complexType>
</xs:element>
<xs:element name="ul">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="li"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="li">
<xs:complexType mixed="true">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="em"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="em" type="xs:string"/>
</xs:schema>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits