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

◆ WriteAttributes()

void System.Xml.Xsl.XsltOld.SequentialOutput.WriteAttributes ( ArrayList list,
int count,
HtmlElementProps htmlElementsProps )
inlineprivateinherited

Definition at line 576 of file SequentialOutput.cs.

577 {
578 for (int i = 0; i < count; i++)
579 {
580 BuilderInfo builderInfo = (BuilderInfo)list[i];
581 string value = builderInfo.Value;
582 bool flag = false;
583 bool flag2 = false;
584 if (htmlElementsProps != null && builderInfo.Prefix.Length == 0)
585 {
586 HtmlAttributeProps htmlAttributeProps = builderInfo.htmlAttrProps;
587 if (htmlAttributeProps == null && builderInfo.search)
588 {
589 htmlAttributeProps = HtmlAttributeProps.GetProps(builderInfo.LocalName);
590 }
591 if (htmlAttributeProps != null)
592 {
595 }
596 }
597 Write(' ');
598 WriteName(builderInfo.Prefix, builderInfo.LocalName);
599 if (!flag || !string.Equals(builderInfo.LocalName, value, StringComparison.OrdinalIgnoreCase))
600 {
601 Write("=\"");
602 if (flag2)
603 {
605 }
606 else if (_isHtmlOutput)
607 {
609 }
610 else
611 {
613 }
614 Write('"');
615 }
616 }
617 }
void WriteName(string prefix, string name)

References System.Xml.Xsl.XsltOld.SequentialOutput._isHtmlOutput, System.count, System.Xml.Dictionary, System.Xml.Xsl.XsltOld.HtmlAttributeProps.GetProps(), System.list, System.value, System.Xml.Xsl.XsltOld.BuilderInfo.Value, System.Xml.Xsl.XsltOld.SequentialOutput.Write(), System.Xml.Xsl.XsltOld.SequentialOutput.WriteHtmlAttributeValue(), System.Xml.Xsl.XsltOld.SequentialOutput.WriteHtmlUri(), System.Xml.Xsl.XsltOld.SequentialOutput.WriteName(), and System.Xml.Xsl.XsltOld.SequentialOutput.WriteXmlAttributeValue().

Referenced by System.Xml.Xsl.XsltOld.SequentialOutput.WriteStartElement().