<?xml version="1.0" encoding="utf-8"?>
<xsd:schema targetNamespace='http://schemas.microsoft.com/intellisense/master-directives'
            xmlns:xsd='http://www.w3.org/2001/XMLSchema'
            xmlns='http://schemas.microsoft.com/intellisense/master-directives'
            xmlns:vs='http://schemas.microsoft.com/Visual-Studio-Intellisense'
            vs:ishtmlschema='false'
            vs:isserverschema='true'
            vs:nonbrowseable='true'
            vs:SuccinctFriendlyName="ASP.Net">

<xsd:annotation>
  <xsd:documentation>
    Master directives schema.
  </xsd:documentation>
</xsd:annotation>

<xsd:include schemaLocation="CommonDirectiveTypes.xsd" />

<!-- Valid top level elements -->
<xsd:element name="Assembly" type="AssemblyDef" vs:htmlequivalent="%@" />
<xsd:element name="Implements" type="ImplementsDef" vs:htmlequivalent="%@" />
<xsd:element name="Import" type="ImportDef" vs:htmlequivalent="%@" />
<xsd:element name="Master" type="MasterDef" vs:htmlequivalent="%@" />
<xsd:element name="MasterType" type="MasterTypeDef" vs:htmlequivalent="%@" vs:disallowedonmobilepages="true" />
<xsd:element name="Reference" type="ReferenceDef" vs:htmlequivalent="%@" />
<xsd:element name="Register" type="RegisterDef" vs:htmlequivalent="%@" />

<!-- Definitions for top level elements -->
<xsd:complexType name="MasterDef">
  <xsd:attribute name="AutoEventWireup" type="xsd:boolean" vs:nonfilterable="true" />
  <xsd:attribute name="ClassName" type="xsd:string" vs:nonfilterable="true" />

  <!-- This isn't specified on msdn, but it is on the vs generated page... -->
  <xsd:attribute name="Codebehind" type="xsd:anyURI" vs:nonbrowseable="true" vs:serverlanguageextensions="true" vs:nonfilterable="true" />

  <xsd:attribute name="CodeFileBaseClass" type="xsd:string" vs:nonfilterable="true" />
  <xsd:attribute name="CompilationMode" type="CompilationModeDef" vs:nonfilterable="true" />
  <xsd:attribute name="CompilerOptions" type="xsd:string" vs:nonfilterable="true" />
  <xsd:attribute name="CodeFile" type="xsd:anyURI" vs:serverlanguageextensions="true" vs:nonfilterable="true" />
  <xsd:attribute name="Debug" type="xsd:boolean" vs:nonfilterable="true" />
  <xsd:attribute name="Description" type="xsd:string" vs:nonfilterable="true" />
  <xsd:attribute name="EnableTheming" type="xsd:boolean" vs:disallowedonmobilepages="true" />
  <xsd:attribute name="EnableViewState" type="xsd:boolean" />
  <xsd:attribute name="Explicit" type="xsd:boolean" vs:nonfilterable="true" />
  <xsd:attribute name="Inherits" type="xsd:string" vs:nonfilterable="true" />

  <xsd:attribute name="Language" type="ServerLanguagesDef" vs:nonfilterable="true" vs:readonly="true" />

  <xsd:attribute name="LinePragmas" type="xsd:boolean" vs:nonfilterable="true" />
  <xsd:attribute name="MasterPageFile" type="xsd:anyURI" vs:preferredextensions=".master" vs:builder="master" vs:disallowedonmobilepages="true" />
  <xsd:attribute name="Src" type="xsd:anyURI" vs:serverlanguageextensions="true" vs:nonfilterable="true" />
  <xsd:attribute name="Strict" type="xsd:boolean" vs:nonfilterable="true" />
  <xsd:attribute name="TargetSchema" type="xsd:string" vs:nonbrowseable="true" vs:nonfilterable="true" />
  <xsd:attribute name="WarningLevel" type="WarningLevelDef" vs:nonfilterable="true" />
</xsd:complexType>

</xsd:schema>
