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

◆ CompileAttribute()

override bool System.Xml.Xsl.XsltOld.XsltOutput.CompileAttribute ( Compiler compiler)
inlinepackagevirtual

Reimplemented from System.Xml.Xsl.XsltOld.CompiledAction.

Definition at line 92 of file XsltOutput.cs.

93 {
94 string localName = compiler.Input.LocalName;
95 string value = compiler.Input.Value;
96 if (Ref.Equal(localName, compiler.Atoms.Method))
97 {
98 if (compiler.Stylesheetid <= _methodSId)
99 {
101 _methodSId = compiler.Stylesheetid;
102 if (_indentSId == int.MaxValue)
103 {
104 _indent = _method == OutputMethod.Html;
105 }
106 }
107 }
108 else if (Ref.Equal(localName, compiler.Atoms.Version))
109 {
110 if (compiler.Stylesheetid <= _versionSId)
111 {
112 _version = value;
113 _versionSId = compiler.Stylesheetid;
114 }
115 }
116 else if (Ref.Equal(localName, compiler.Atoms.Encoding))
117 {
118 if (compiler.Stylesheetid <= _encodingSId)
119 {
120 try
121 {
123 _encodingSId = compiler.Stylesheetid;
124 }
125 catch (NotSupportedException)
126 {
127 }
128 catch (ArgumentException)
129 {
130 }
131 }
132 }
133 else if (Ref.Equal(localName, compiler.Atoms.OmitXmlDeclaration))
134 {
135 if (compiler.Stylesheetid <= _omitXmlDeclSId)
136 {
137 _omitXmlDecl = compiler.GetYesNo(value);
138 _omitXmlDeclSId = compiler.Stylesheetid;
139 }
140 }
141 else if (Ref.Equal(localName, compiler.Atoms.Standalone))
142 {
143 if (compiler.Stylesheetid <= _standaloneSId)
144 {
145 _standalone = compiler.GetYesNo(value);
146 _standaloneSId = compiler.Stylesheetid;
147 }
148 }
149 else if (Ref.Equal(localName, compiler.Atoms.DocTypePublic))
150 {
151 if (compiler.Stylesheetid <= _doctypePublicSId)
152 {
154 _doctypePublicSId = compiler.Stylesheetid;
155 }
156 }
157 else if (Ref.Equal(localName, compiler.Atoms.DocTypeSystem))
158 {
159 if (compiler.Stylesheetid <= _doctypeSystemSId)
160 {
162 _doctypeSystemSId = compiler.Stylesheetid;
163 }
164 }
165 else if (Ref.Equal(localName, compiler.Atoms.Indent))
166 {
167 if (compiler.Stylesheetid <= _indentSId)
168 {
169 _indent = compiler.GetYesNo(value);
170 _indentSId = compiler.Stylesheetid;
171 }
172 }
173 else if (Ref.Equal(localName, compiler.Atoms.MediaType))
174 {
175 if (compiler.Stylesheetid <= _mediaTypeSId)
176 {
178 _mediaTypeSId = compiler.Stylesheetid;
179 }
180 }
181 else
182 {
183 if (!Ref.Equal(localName, compiler.Atoms.CDataSectionElements))
184 {
185 return false;
186 }
187 string[] array = XmlConvert.SplitString(value);
188 if (_cdataElements == null)
189 {
190 _cdataElements = new Hashtable(array.Length);
191 }
192 for (int i = 0; i < array.Length; i++)
193 {
194 XmlQualifiedName xmlQualifiedName = compiler.CreateXmlQName(array[i]);
196 }
197 }
198 return true;
199 }
static Encoding GetEncoding(int codepage)
Definition Encoding.cs:593
static OutputMethod ParseOutputMethod(string value, Compiler compiler)

References System.Xml.Xsl.XsltOld.XsltOutput._cdataElements, System.Xml.Xsl.XsltOld.XsltOutput._doctypePublic, System.Xml.Xsl.XsltOld.XsltOutput._doctypePublicSId, System.Xml.Xsl.XsltOld.XsltOutput._doctypeSystem, System.Xml.Xsl.XsltOld.XsltOutput._doctypeSystemSId, System.Xml.Xsl.XsltOld.XsltOutput._encoding, System.Xml.Xsl.XsltOld.XsltOutput._encodingSId, System.Xml.Xsl.XsltOld.XsltOutput._indent, System.Xml.Xsl.XsltOld.XsltOutput._indentSId, System.Xml.Xsl.XsltOld.XsltOutput._mediaType, System.Xml.Xsl.XsltOld.XsltOutput._mediaTypeSId, System.Xml.Xsl.XsltOld.XsltOutput._method, System.Xml.Xsl.XsltOld.XsltOutput._methodSId, System.Xml.Xsl.XsltOld.XsltOutput._omitXmlDecl, System.Xml.Xsl.XsltOld.XsltOutput._omitXmlDeclSId, System.Xml.Xsl.XsltOld.XsltOutput._standalone, System.Xml.Xsl.XsltOld.XsltOutput._standaloneSId, System.Xml.Xsl.XsltOld.XsltOutput._version, System.Xml.Xsl.XsltOld.XsltOutput._versionSId, System.array, System.Xml.Dictionary, System.Xml.Ref.Equal(), System.Text.Encoding.GetEncoding(), System.Xml.Xsl.XsltOld.XsltOutput.ParseOutputMethod(), System.Xml.XmlConvert.SplitString(), and System.value.