internal void PushMCAttributes(MarkupCompatibilityAttributes attr) { _pushedIgnor.Push(PushIgnorable(attr)); _pushedPA.Push(PushPreserveAttribute(attr)); _pushedPE.Push(PushPreserveElement(attr)); _pushedPC.Push(PushProcessContent(attr)); }
/// <summary> /// This method is for MC validation use. Only push Ignorable and ProcessContent. /// </summary> /// <param name="attr"></param> /// <param name="lookupNamespaceDelegate"></param> internal void PushMCAttributes2(MarkupCompatibilityAttributes attr, LookupNamespace lookupNamespaceDelegate) { LookupNamespaceDelegate = lookupNamespaceDelegate; _pushedIgnor.Push(PushIgnorable(attr)); _pushedPC.Push(PushProcessContent(attr)); }
private int PushProcessContent(MarkupCompatibilityAttributes attr) { int ret = 0; if (attr != null && attr.ProcessContent != null && !string.IsNullOrEmpty(attr.ProcessContent.Value)) { ret = PushQName(_currentProcessContent, attr.ProcessContent.Value); } return(ret); }
private int PushPreserveElement(MarkupCompatibilityAttributes attr) { int ret = 0; if (attr != null && attr.PreserveElements != null && !string.IsNullOrEmpty(attr.PreserveElements.Value)) { ret = PushQName(_currentPreserveEle, attr.PreserveElements.Value); } return(ret); }
private int PushIgnorable(MarkupCompatibilityAttributes attr) { int ret = 0; if (attr != null && attr.Ignorable != null && !string.IsNullOrEmpty(attr.Ignorable.Value)) { foreach (var ns in ParsePrefixList(attr.Ignorable, OnMcContextError)) { _currentIgnorable.Push(ns); ret++; } } return(ret); }
private int PushProcessContent(MarkupCompatibilityAttributes attr) { int ret = 0; if (attr != null && attr.ProcessContent != null && !string.IsNullOrEmpty(attr.ProcessContent.Value)) { ret = PushQName(_currentProcessContent, attr.ProcessContent.Value); } return ret; }
private int PushPreserveElement(MarkupCompatibilityAttributes attr) { int ret = 0; if (attr != null && attr.PreserveElements != null && !string.IsNullOrEmpty(attr.PreserveElements.Value)) { ret = PushQName(_currentPreserveEle, attr.PreserveElements.Value); } return ret; }
private int PushIgnorable(MarkupCompatibilityAttributes attr) { int ret = 0; if (attr != null && attr.Ignorable != null && !string.IsNullOrEmpty(attr.Ignorable.Value)) { foreach (var ns in ParsePrefixList(attr.Ignorable, OnMcContextError)) { _currentIgnorable.Push(ns); ret++; } } return ret; }
/// <summary> /// This method is for MC validation use. Only push Ignorable and ProcessContent. /// </summary> /// <param name="attr"></param> /// <param name="lookupNamespaceDelegate"></param> internal void PushMCAttributes2(MarkupCompatibilityAttributes attr, LookupNamespace lookupNamespaceDelegate) { this.LookupNamespaceDelegate = lookupNamespaceDelegate; _pushedIgnor.Push(PushIgnorable(attr)); _pushedPC.Push(PushProcessContent(attr)); }
internal void PushMCAttributes(MarkupCompatibilityAttributes attr) { _pushedIgnor.Push(PushIgnorable(attr)); _pushedPA.Push(PushPreserveAttribute(attr)); _pushedPE.Push(PushPreserveElement(attr)); _pushedPC.Push(PushProcessContent(attr)); }