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

◆ XslText()

XslNode System.Xml.Xsl.Xslt.XsltLoader.XslText ( )
inlineprivate

Definition at line 1693 of file XsltLoader.cs.

1694 {
1696 SerializationHints hints = ((ParseYesNoAttribute(0, "disable-output-escaping") == TriState.True) ? SerializationHints.DisableOutputEscaping : SerializationHints.None);
1700 {
1701 do
1702 {
1703 XmlNodeType nodeType = _input.NodeType;
1704 if (nodeType == XmlNodeType.Text || (uint)(nodeType - 13) <= 1u)
1705 {
1706 list.Add(AstFactory.Text(_input.Value, hints));
1707 continue;
1708 }
1710 _input.SkipNode();
1711 }
1712 while (_input.MoveToNextSibling());
1713 }
1714 return SetInfo(AstFactory.List(), list, attributes);
1715 }
static string Xslt_UnexpectedElement
Definition SR.cs:1872
Definition SR.cs:7
void ReportError(string res, params string[] args)
TriState ParseYesNoAttribute(int attNum, string attName)
static XslNode SetInfo(XslNode to, List< XslNode > content, XsltInput.ContextInfo info)
readonly XsltInput.XsltAttribute[] _textAttributes

References System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Xsl.Xslt.XsltLoader._textAttributes, System.Xml.Dictionary, System.Xml.Xsl.Xslt.XsltInput.ElementName, System.Xml.Xsl.Xslt.XsltInput.GetAttributes(), System.list, System.Xml.Xsl.Xslt.AstFactory.List(), System.Xml.Xsl.Xslt.XsltInput.MoveToFirstChild(), System.Xml.Xsl.Xslt.XsltInput.MoveToNextSibling(), System.Xml.Xsl.Xslt.XsltInput.NodeType, System.Xml.Xsl.Xslt.XsltLoader.ParseYesNoAttribute(), System.Xml.Xsl.Xslt.XsltInput.QualifiedName, System.Xml.Xsl.Xslt.XsltLoader.ReportError(), System.Xml.Xsl.Xslt.XsltLoader.SetInfo(), System.Xml.Xsl.Xslt.XsltInput.SkipNode(), System.Xml.Xsl.Xslt.AstFactory.Text(), System.Xml.Xsl.Xslt.XsltInput.Value, and System.SR.Xslt_UnexpectedElement.

Referenced by System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions().