Stylesheet.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / Xslt / Stylesheet.cs / 1305376 / Stylesheet.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
//-----------------------------------------------------------------------------
 
using System.Collections.Generic; 
using System.Diagnostics;
using System.Xml.Xsl.Qil; 

namespace System.Xml.Xsl.Xslt {

    internal class StylesheetLevel { 
        public Stylesheet[] Imports = null;
 
        // If (this is Stylesheet) { 
        //   ModeFlags and ApplyFunctions are abblout apply-imports
        // } else { 
        //   ModeFlags and ApplyFunctions are abblout apply-templates
        // }
        // mode -> FocusFlags; Used to generate and call apply-imports/apply-template functions
        public Dictionary ModeFlags = new Dictionary(); 
        // mode -> xsl:apply-import functions for that mode
        public Dictionary> ApplyFunctions = new Dictionary>(); 
    } 

    internal class Stylesheet : StylesheetLevel { 
        private Compiler compiler;
        public List ImportHrefs = new List();
        public List        GlobalVarPars       = new List();
 
        // xsl:attribute-set/@name -> AttributeSet
        public Dictionary        AttributeSets   = new Dictionary(); 
 
        private int                importPrecedence;
        private int                orderNumber          = 0; 

        /*
            WhitespaceRules[0] - rules with default priority  0
            WhitespaceRules[1] - rules with default priority -0.25 
            WhitespaceRules[2] - rules with default priority -0.5
        */ 
        public List[]   WhitespaceRules = new List[3]; 

        public List