Exemple #1
0
        private static void AddValues(CssProperty property, XElement element)
        {
            foreach (var entry in element.Elements("entry"))
            {
                var name        = entry.Attribute("value");
                var description = entry.Attribute("description");

                property.AddValue(new CssPropertyValue(name.Value, Optional(description)));
            }
        }
Exemple #2
0
        private static void AddValues(CssProperty property, XElement element)
        {
            foreach (var entry in element.Elements("entry"))
            {
                var name = entry.Attribute("value");
                var description = entry.Attribute("description");

                property.AddValue(new CssPropertyValue(name.Value, Optional(description)));
            }
        }
Exemple #3
0
        private static void ParseProperty(CssSchema schema, XElement element)
        {
            var name = element.Attribute("name") ?? element.Attribute("_locID");
            // TODO: restriction
            // TODO: type
            var description = element.Attribute("description");

            if (!schema._Properties.ContainsKey(name.Value))
            {
                var property = new CssProperty(name.Value, Optional(description));
                schema._Properties.Add(name.Value, property);

                AddValues(property, element);
            }
        }
Exemple #4
0
        private static void ParseProperty(CssSchema schema, XElement element)
        {
            var name = element.Attribute("name") ?? element.Attribute("_locID");
            // TODO: restriction
            // TODO: type
            var description = element.Attribute("description");

            if (!schema._Properties.ContainsKey(name.Value))
            {
                var property = new CssProperty(name.Value, Optional(description));
                schema._Properties.Add(name.Value, property);

                AddValues(property, element);
            }
        }