System.Xml.Xsl.XsltOld.Compiler.PushLiteralScope C# (CSharp) Method

PushLiteralScope() private method

private PushLiteralScope ( ) : void
return void
        internal void PushLiteralScope()
        {
            PushNamespaceScope();
            string value = Input.Navigator.GetAttribute(Atoms.Version, Atoms.UriXsl);
            if (value.Length != 0)
            {
                ForwardCompatibility = (value != "1.0");
            }
        }

Usage Example

Ejemplo n.º 1
0
        protected void CompileOnceTemplate(Compiler compiler)
        {
            NavigatorInput input = compiler.Input;

            if (input.NodeType == XPathNodeType.Element)
            {
                string nspace = input.NamespaceURI;

                if (Ref.Equal(nspace, input.Atoms.UriXsl))
                {
                    compiler.PushNamespaceScope();
                    CompileInstruction(compiler);
                    compiler.PopScope();
                }
                else
                {
                    compiler.PushLiteralScope();
                    compiler.InsertExtensionNamespace();
                    if (compiler.IsExtensionNamespace(nspace))
                    {
                        AddAction(compiler.CreateNewInstructionAction());
                    }
                    else
                    {
                        CompileLiteral(compiler);
                    }
                    compiler.PopScope();
                }
            }
            else
            {
                CompileLiteral(compiler);
            }
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.Compiler::PushLiteralScope