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

◆ XslAttribute()

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

Definition at line 1737 of file XsltLoader.cs.

1738 {
1740 string nameAvt = ParseNCNameAttribute(0);
1741 string text = ParseStringAttribute(1, "namespace");
1742 CheckError(text == "http://www.w3.org/2000/xmlns/", System.SR.Xslt_ReservedNS, text);
1743 string text2 = ParseStringAttribute(2, "select");
1744 if (text2 != null)
1745 {
1746 ReportNYI("xsl:attribute/@select");
1747 }
1748 string text3 = ParseStringAttribute(3, "separator");
1749 if (text3 != null)
1750 {
1751 ReportNYI("xsl:attribute/@separator");
1752 }
1753 text3 = ((text3 != null) ? text3 : ((text2 != null) ? " " : string.Empty));
1756 return SetInfo(AstFactory.Attribute(nameAvt, text, _input.XslVersion), LoadContent(text2 != null), attributes);
1757 }
static string Xslt_ReservedNS
Definition SR.cs:1958
Definition SR.cs:7
void ParseValidationAttribute(int attNum, bool defVal)
List< XslNode > LoadContent(bool hasSelect)
string ParseNCNameAttribute(int attNum)
readonly XsltInput.XsltAttribute[] _attributeAttributes
void CheckError(bool cond, string res, params string[] args)
string ParseStringAttribute(int attNum, string attName)
void ParseTypeAttribute(int attNum)
static XslNode SetInfo(XslNode to, List< XslNode > content, XsltInput.ContextInfo info)

References System.Xml.Xsl.Xslt.XsltLoader._attributeAttributes, System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Xsl.Xslt.AstFactory.Attribute(), System.Xml.Xsl.Xslt.XsltLoader.CheckError(), System.Xml.Xsl.Xslt.XsltInput.GetAttributes(), System.Xml.Xsl.Xslt.XsltLoader.LoadContent(), System.Xml.Xsl.Xslt.XsltLoader.ParseNCNameAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ParseStringAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ParseTypeAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ParseValidationAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ReportNYI(), System.Xml.Xsl.Xslt.XsltLoader.SetInfo(), System.text, System.SR.Xslt_ReservedNS, and System.Xml.Xsl.Xslt.XsltInput.XslVersion.

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