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

◆ CompileAttribute()

QilNode System.Xml.Xsl.Xslt.QilGenerator.CompileAttribute ( NodeCtor node)
inlineprivate

Definition at line 816 of file QilGenerator.cs.

817 {
820 bool flag = false;
822 if (qilNode2.NodeType != QilNodeType.LiteralString || (qilNode != null && qilNode.NodeType != QilNodeType.LiteralString))
823 {
825 }
826 else
827 {
828 string text = (QilLiteral)qilNode2;
829 string prefix;
830 string localName;
831 bool flag2 = _compiler.ParseQName(text, out prefix, out localName, this);
832 string text2;
833 if (qilNode == null)
834 {
835 text2 = (flag2 ? ResolvePrefix(ignoreDefaultNs: true, prefix) : _compiler.CreatePhantomNamespace());
836 }
837 else
838 {
840 flag = true;
841 }
842 if (text == "xmlns" || (localName == "xmlns" && text2.Length == 0))
843 {
845 }
846 name = _f.QName(localName, text2, prefix);
847 }
848 if (flag)
849 {
851 }
852 return _f.AttributeCtor(name, CompileInstructions(node.Content));
853 }
static string Xslt_XmlnsAttr
Definition SR.cs:1960
Definition SR.cs:7
QilNode AttributeCtor(QilNode name, QilNode val)
QilName QName(string local, string uri, string prefix)
bool ParseQName(string qname, out string prefix, out string localName, IErrorHelper errorHelper)
Definition Compiler.cs:242
QilNode ResolveQNameDynamic(bool ignoreDefaultNs, QilNode qilName)
void ReportError(string res, params string[] args)
readonly XsltQilFactory _f
readonly OutputScopeManager _outputScope
QilNode CompileInstructions(IList< XslNode > instructions)
QilNode CompileStringAvt(string avt)
string ResolvePrefix(bool ignoreDefaultNs, string prefix)

References System.Xml.Xsl.Xslt.QilGenerator._compiler, System.Xml.Xsl.Xslt.QilGenerator._f, System.Xml.Xsl.Xslt.QilGenerator._outputScope, System.Xml.Xsl.Qil.QilPatternFactory.AttributeCtor(), System.Xml.Xsl.Xslt.QilGenerator.CompileInstructions(), System.Xml.Xsl.Xslt.QilGenerator.CompileStringAvt(), System.Xml.Xsl.Xslt.Compiler.CreatePhantomNamespace(), System.Xml.Dictionary, System.Xml.Xsl.Xslt.OutputScopeManager.InvalidateNonDefaultPrefixes(), System.Xml.Xsl.Xslt.Compiler.ParseQName(), System.prefix, System.Xml.Xsl.Qil.QilPatternFactory.QName(), System.Xml.Xsl.Xslt.QilGenerator.ReportError(), System.Xml.Xsl.Xslt.QilGenerator.ResolvePrefix(), System.Xml.Xsl.Xslt.QilGenerator.ResolveQNameDynamic(), System.Xml.Xsl.Qil.QilPatternFactory.StrParseQName(), System.text, and System.SR.Xslt_XmlnsAttr.

Referenced by System.Xml.Xsl.Xslt.QilGenerator.CompileInstructions().