Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CompileLiteralAttributesAndNamespaces()

void System.Xml.Xsl.XsltOld.ContainerAction.CompileLiteralAttributesAndNamespaces ( Compiler compiler)
inlineprivateinherited

Definition at line 690 of file ContainerAction.cs.

691 {
692 NavigatorInput input = compiler.Input;
693 if (input.Navigator.MoveToAttribute("use-attribute-sets", input.Atoms.UriXsl))
694 {
695 AddAction(compiler.CreateUseAttributeSetsAction());
696 input.Navigator.MoveToParent();
697 }
698 compiler.InsertExcludedNamespace();
699 if (input.MoveToFirstNamespace())
700 {
701 do
702 {
703 string value = input.Value;
704 if (!(value == "http://www.w3.org/1999/XSL/Transform") && !compiler.IsExcludedNamespace(value) && !compiler.IsExtensionNamespace(value) && !compiler.IsNamespaceAlias(value))
705 {
706 AddEvent(new NamespaceEvent(input));
707 }
708 }
709 while (input.MoveToNextNamespace());
710 input.ToParent();
711 }
712 if (!input.MoveToFirstAttribute())
713 {
714 return;
715 }
716 do
717 {
718 if (!Ref.Equal(input.NamespaceURI, input.Atoms.UriXsl))
719 {
720 AddEvent(compiler.CreateBeginEvent());
721 AddEvents(compiler.CompileAvt(input.Value));
722 AddEvent(new EndEvent(XPathNodeType.Attribute));
723 }
724 }
725 while (input.MoveToNextAttribute());
726 input.ToParent();
727 }
void AddEvents(ArrayList copyEvents)

References System.Xml.Xsl.XsltOld.ContainerAction.AddAction(), System.Xml.Xsl.XsltOld.ContainerAction.AddEvent(), System.Xml.Xsl.XsltOld.ContainerAction.AddEvents(), System.Xml.Dictionary, System.Xml.Ref.Equal(), System.input, and System.value.

Referenced by System.Xml.Xsl.XsltOld.ContainerAction.CompileLiteral().