do not wrap DOMElements in CDATA sections for WPS Execute, p=jachym, r=me (closes http://trac.osgeo.org/openlayers/ticket/3517)
This commit is contained in:
@@ -203,9 +203,14 @@ OpenLayers.Format.WPSExecute = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
schema: complexData.schema
|
||||
}
|
||||
});
|
||||
node.appendChild(
|
||||
this.getXMLDoc().createCDATASection(complexData.value)
|
||||
);
|
||||
var data = complexData.value;
|
||||
if (typeof data === "string") {
|
||||
node.appendChild(
|
||||
this.getXMLDoc().createCDATASection(complexData.value)
|
||||
);
|
||||
} else {
|
||||
node.appendChild(data);
|
||||
}
|
||||
return node;
|
||||
},
|
||||
"Reference": function(reference) {
|
||||
|
||||
@@ -413,6 +413,13 @@
|
||||
' <wps:ComplexData><![CDATA[<html><head></head><body></body></head>]]></wps:ComplexData>' +
|
||||
' </wps:Data>' +
|
||||
' </wps:Input>' +
|
||||
' <wps:Input>' +
|
||||
' <ows:Identifier>GMLPoint</ows:Identifier>' +
|
||||
' <ows:Title>Point as GML</ows:Title>' +
|
||||
' <wps:Data>' +
|
||||
' <wps:ComplexData><feature:geometry xmlns:feature="http://www.opengis.net/gml"><feature:Point><feature:pos>10 10</feature:pos></feature:Point></feature:geometry></wps:ComplexData>' +
|
||||
' </wps:Data>' +
|
||||
' </wps:Input>' +
|
||||
' </wps:DataInputs>' +
|
||||
' <wps:ResponseForm>' +
|
||||
' <wps:ResponseDocument storeExecuteResponse="true">' +
|
||||
@@ -442,6 +449,14 @@
|
||||
value: "<html><head></head><body></body></head>"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
identifier: "GMLPoint",
|
||||
title: "Point as GML",
|
||||
data: {
|
||||
complexData: {
|
||||
value: OpenLayers.Format.GML.v3.prototype.writers.feature["_geometry"].apply(new OpenLayers.Format.GML.v3({curve: true, surface: true}), [new OpenLayers.Geometry.Point(10, 10)])
|
||||
}
|
||||
}
|
||||
}],
|
||||
responseForm: {
|
||||
responseDocument: {
|
||||
|
||||
Reference in New Issue
Block a user