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

◆ SystemProperty()

static XPathItem System.Xml.Xsl.Runtime.XsltFunctions.SystemProperty ( XmlQualifiedName name)
inlinestatic

Definition at line 205 of file XsltFunctions.cs.

206 {
207 if (name.Namespace == "http://www.w3.org/1999/XSL/Transform")
208 {
209 switch (name.Name)
210 {
211 case "version":
213 case "vendor":
214 return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), "Microsoft");
215 case "vendor-url":
216 return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), "http://www.microsoft.com");
217 }
218 }
219 else if (name.Namespace == "urn:schemas-microsoft-com:xslt" && name.Name == "version")
220 {
221 return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), typeof(XsltLibrary).Assembly.ImageRuntimeVersion);
222 }
223 return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), string.Empty);
224 }
static ? XmlSchemaSimpleType GetBuiltInSimpleType(XmlQualifiedName qualifiedName)

References System.Assembly, and System.Xml.Schema.XmlSchemaType.GetBuiltInSimpleType().

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