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

◆ LoadLiteralResultElement()

XslNode System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement ( bool asStylesheet)
inlineprivate

Definition at line 1794 of file XsltLoader.cs.

1795 {
1796 string prefix = _input.Prefix;
1797 string localName = _input.LocalName;
1798 string namespaceUri = _input.NamespaceUri;
1800 if (_input.IsExtensionNamespace(namespaceUri))
1801 {
1802 return SetInfo(AstFactory.List(), LoadFallbacks(localName), literalAttributes);
1803 }
1805 for (int i = 1; _input.MoveToLiteralAttribute(i); i++)
1806 {
1808 {
1810 }
1811 }
1812 for (int j = 1; _input.MoveToLiteralAttribute(j); j++)
1813 {
1814 if (!_input.IsXsltNamespace())
1815 {
1816 XslNode node = AstFactory.LiteralAttribute(AstFactory.QName(_input.LocalName, _input.NamespaceUri, _input.Prefix), _input.Value, _input.XslVersion);
1818 }
1819 }
1821 return SetInfo(AstFactory.LiteralElement(AstFactory.QName(localName, namespaceUri, prefix)), list, literalAttributes);
1822 }
ContextInfo GetLiteralAttributes(bool asStylesheet)
Definition XsltInput.cs:874
bool IsKeyword(string kwd)
Definition XsltInput.cs:702
bool MoveToLiteralAttribute(int attNum)
Definition XsltInput.cs:670
bool IsExtensionNamespace(string uri)
Definition XsltInput.cs:726
static void AddInstruction(List< XslNode > content, XslNode instruction)
void AddUseAttributeSets(List< XslNode > list)
List< XslNode > LoadInstructions()
List< XslNode > LoadFallbacks(string instrName)
static XslNode SetInfo(XslNode to, List< XslNode > content, XsltInput.ContextInfo info)
static XslNode SetLineInfo(XslNode node, ISourceLineInfo lineInfo)
List< XslNode > LoadEndTag(List< XslNode > content)

References System.Xml.Xsl.Xslt.XsltLoader._atoms, System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Xsl.Xslt.XsltLoader.AddInstruction(), System.Xml.Xsl.Xslt.XsltLoader.AddUseAttributeSets(), System.Xml.Dictionary, System.Xml.Xsl.Xslt.XsltInput.GetLiteralAttributes(), System.Xml.Xsl.Xslt.XsltInput.IsExtensionNamespace(), System.Xml.Xsl.Xslt.XsltInput.IsKeyword(), System.Xml.Xsl.Xslt.XsltInput.IsXsltNamespace(), System.list, System.Xml.Xsl.Xslt.AstFactory.List(), System.Xml.Xsl.Xslt.AstFactory.LiteralAttribute(), System.Xml.Xsl.Xslt.AstFactory.LiteralElement(), System.Xml.Xsl.Xslt.XsltLoader.LoadEndTag(), System.Xml.Xsl.Xslt.XsltLoader.LoadFallbacks(), System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(), System.Xml.Xsl.Xslt.XsltInput.LocalName, System.Xml.Xsl.Xslt.XsltInput.MoveToLiteralAttribute(), System.Xml.Xsl.Xslt.XsltInput.NamespaceUri, System.prefix, System.Xml.Xsl.Xslt.XsltInput.Prefix, System.Xml.Xsl.Xslt.AstFactory.QName(), System.Xml.Xsl.Xslt.XsltLoader.SetInfo(), System.Xml.Xsl.Xslt.XsltLoader.SetLineInfo(), System.Xml.Xsl.Xslt.KeywordsTable.UseAttributeSets, System.Xml.Xsl.Xslt.XsltInput.Value, and System.Xml.Xsl.Xslt.XsltInput.XslVersion.

Referenced by System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(), and System.Xml.Xsl.Xslt.XsltLoader.LoadSimplifiedStylesheet().