|
Lines 9-14
Link Here
|
| 9 |
* David Carver (STAR) - initial API and implementation |
9 |
* David Carver (STAR) - initial API and implementation |
| 10 |
* Jin Mingjan - bug 262765 - extractXPathExpression and getExpectedResults |
10 |
* Jin Mingjan - bug 262765 - extractXPathExpression and getExpectedResults |
| 11 |
* Jesper S Moller - bug 283214 - fix IF THEN ELSE parsing and update grammars |
11 |
* Jesper S Moller - bug 283214 - fix IF THEN ELSE parsing and update grammars |
|
|
12 |
* Jesper S Moller - bug 283214 - fix XML result serialization |
| 12 |
* Jesper S Moller - bug 283404 - fixed locale |
13 |
* Jesper S Moller - bug 283404 - fixed locale |
| 13 |
*******************************************************************************/ |
14 |
*******************************************************************************/ |
| 14 |
package org.eclipse.wst.xml.xpath2.processor.test; |
15 |
package org.eclipse.wst.xml.xpath2.processor.test; |
|
Lines 341-352
Link Here
|
| 341 |
|
342 |
|
| 342 |
String actual = new String(); |
343 |
String actual = new String(); |
| 343 |
Iterator<NodeType> iterator = rs.iterator(); |
344 |
Iterator<NodeType> iterator = rs.iterator(); |
|
|
345 |
boolean queueSpace = false; |
| 344 |
while (iterator.hasNext()) { |
346 |
while (iterator.hasNext()) { |
| 345 |
AnyType aat = iterator.next(); |
347 |
AnyType aat = iterator.next(); |
| 346 |
if (aat instanceof NodeType) { |
348 |
if (aat instanceof NodeType) { |
| 347 |
NodeType nodeType = (NodeType) aat; |
349 |
NodeType nodeType = (NodeType) aat; |
| 348 |
Node node = nodeType.node_value(); |
350 |
Node node = nodeType.node_value(); |
| 349 |
serializer.write(node, outputText); |
351 |
serializer.write(node, outputText); |
|
|
352 |
queueSpace = false; |
| 353 |
} else { |
| 354 |
if (queueSpace) outputText.getByteStream().write(32); |
| 355 |
outputText.getByteStream().write(aat.string_value().getBytes("UTF-8")); |
| 356 |
queueSpace = true; |
| 350 |
} |
357 |
} |
| 351 |
} |
358 |
} |
| 352 |
|
359 |
|