Hi again.. I don't know if this question strictly ties in with this area of the forum however I'm not sure how involved XSLT is with this and it does relate to how I would use xlink:href:
http://www.multimap.com/openapidocs/...n.htm#examples
That URL points to the multimap web service for coordinate transformation between various coordinate reference systems. It would be helpful to me if I could use this web service but I'm struggling to understand how the process works.
Lets say I have the following xml fragment:
Code:
<gml:Point gml:id="slopeBaseWGS84" srsName="WGS84">
<gml:pos>54.439390 -3.294112</gml:pos>
</gml:Point>
And i want to convert those to OS grid latitude and longitude values using their web service and then to use the values they feed back.
They request for an 'xml output' of something like this:
Code:
http://developer.multimap.com/API/convert/1.2/OA09042217172872167?output=xml&system=osng&x_1=505658&y_1=316165&x_2=316165&y_2=505658
(where OA09042217172872167 is an example API key)
This gives the result in XML of:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Results xmlns="http://clients.multimap.com/API" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://clients.multimap.com/API http://clients.multimap.com/Schema/convert_1.2.xsd">
<Point>
<Lat>54.43940</Lat>
<Lon>-3.29411</Lon>
</Point>
</Results>
Which is correct. (To see this i simply entered the URL in to the browser directly.)
What I'd like to know is how I could implement this in to my process? Currently the user submits an XML file (according to my schema) and it produces (via Saxon-B) outputs such as SVG, KML and HTML pages (which all interlink to produce a 'case' page).
It would be very useful if I could squeeze set something up so that once the xml was submitted it would then, where required, translate coordinate pairs in to another coordinate reference system (CRS), return their values in to a known place within the XML (such as as a following sibling to the XML fragment shown nearer the top) so that the XSLT files could then perform translations based on the new coordinates. Maybe it works differently?
Thanks for any help
p.s. I've read up on SOAP before but don't recall this type of request and integration, but maybe I'm wrong.