Click here to Skip to main content
15,886,519 members
Articles / Programming Languages / XML

A Library for Writing/Building Scripts in C#

Rate me:
Please Sign up or sign in to vote.
4.15/5 (6 votes)
14 Oct 2008CPOL3 min read 54.5K   503   55  
Designed to make it easier to write scripts such as JavaScript in C#
<?xml version="1.0" encoding="utf-8" ?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" 
		xmlns:maml="http://ddue.schemas.microsoft.com/authoring/2003/5" 
		xmlns:doc="http://ddue.schemas.microsoft.com/authoring/internal"
		targetNamespace="http://ddue.schemas.microsoft.com/authoring/2003/5" 
		elementFormDefault="qualified"
        attributeFormDefault="unqualified"
        >

	<!-- Schema documentation -->
	<annotation>
		<documentation>
			This schema definition defines common structure types for the CS Schema.
			This schema is part of the base layer.			
		</documentation>
	</annotation>

	<!-- include and import declarations -->
	<include schemaLocation="base.xsd"/>

    <complexType name="listType" mixed="false">
        <choice minOccurs="1" maxOccurs="unbounded">
            <element ref="maml:listItem"/>
            <element name="conditionalSection">
                <complexType>
                    <sequence>
                        <element ref="maml:conditions"/>
                        <element name="conditionalContent" type="maml:listType"/>
                    </sequence>
                </complexType>
            </element>
        </choice>
        <attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
        <attribute name="class" use="required">
			<annotation>
				<documentation>
					The class attribute describes the type of list.
				</documentation>
			</annotation>
			<simpleType>
				<restriction base="string">
					<enumeration value="bullet"/>
					<enumeration value="nobullet"/>
					<enumeration value="ordered"/>
				</restriction>
			</simpleType>
		</attribute>
    </complexType>
    
	<!-- element declarations -->
	<element name="list" type="maml:listType">
		<annotation>
			<documentation>
				The list element describes content that should be displayed as a list.
			</documentation>
			<appinfo>
			    <doc:localizable>n/a</doc:localizable>
				<doc:type>structure</doc:type>
			</appinfo>
		</annotation>
	</element>
	
	<element name="listItem" type="maml:sectionContentType">
		<annotation>
			<documentation>
				The listItem element describes an item within a list. The 
				content of the listItem element will be treated as a unit.
			</documentation>
			<appinfo>
			    <doc:localizable>n/a</doc:localizable>
				<doc:type>structure</doc:type>
			</appinfo>
		</annotation>
	</element>
	
	<!-- group declarations -->
	<group name="structureListGroup">
		<annotation>
			<documentation>
				This group describes the common lists that can be used to describe
				list data. 
			</documentation>
		</annotation>	
		<choice>
			<element ref="maml:list"/>
		</choice>
	</group>
	
</schema>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Web Site Advantage
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions