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

◆ PreserveWhiteSpace()

bool System.Xml.Xsl.XsltOld.Stylesheet.PreserveWhiteSpace ( Processor proc,
XPathNavigator node )
inlinepackage

Definition at line 120 of file Stylesheet.cs.

121 {
122 if (_whitespaceList != null)
123 {
124 int num = _whitespaceList.Count - 1;
125 while (0 <= num)
126 {
127 WhitespaceElement whitespaceElement = (WhitespaceElement)_whitespaceList[num];
128 if (proc.Matches(node, whitespaceElement.Key))
129 {
130 return whitespaceElement.PreserveSpace;
131 }
132 num--;
133 }
134 }
135 if (_imports != null)
136 {
137 for (int num2 = _imports.Count - 1; num2 >= 0; num2--)
138 {
139 Stylesheet stylesheet = (Stylesheet)_imports[num2];
140 if (!stylesheet.PreserveWhiteSpace(proc, node))
141 {
142 return false;
143 }
144 }
145 }
146 return true;
147 }

References System.Xml.Xsl.XsltOld.Stylesheet._imports, System.Xml.Xsl.XsltOld.Stylesheet._whitespaceList, System.Collections.ArrayList.Count, System.Xml.Dictionary, and System.Xml.Xsl.XsltOld.Stylesheet.PreserveWhiteSpace().

Referenced by System.Xml.Xsl.XsltOld.Processor.ElementValueWithoutWS(), System.Xml.Xsl.XsltOld.Stylesheet.PreserveWhiteSpace(), and System.Xml.Xsl.XsltOld.XsltCompileContext.PreserveWhitespace().