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

◆ SystemProperty()

string System.Xml.Xsl.XsltOld.XsltCompileContext.SystemProperty ( string qname)
inlineprivate

Definition at line 841 of file XsltCompileContext.cs.

842 {
843 string result = string.Empty;
844 PrefixQName.ParseQualifiedName(qname, out var prefix, out var local);
845 string text = LookupNamespace(prefix);
846 if (text == "http://www.w3.org/1999/XSL/Transform")
847 {
848 switch (local)
849 {
850 case "version":
851 result = "1";
852 break;
853 case "vendor":
854 result = "Microsoft";
855 break;
856 case "vendor-url":
857 result = "http://www.microsoft.com";
858 break;
859 }
860 return result;
861 }
862 if (text == null && prefix != null)
863 {
864 throw XsltException.Create(System.SR.Xslt_InvalidPrefix, prefix);
865 }
866 return string.Empty;
867 }
static string Xslt_InvalidPrefix
Definition SR.cs:1926
Definition SR.cs:7
override string LookupNamespace(string prefix)

References System.Xml.Xsl.XsltException.Create(), System.Xml.Dictionary, System.Xml.Xsl.XsltOld.XsltCompileContext.LookupNamespace(), System.Xml.Xsl.XsltOld.PrefixQName.ParseQualifiedName(), System.prefix, System.text, and System.SR.Xslt_InvalidPrefix.