[Qgis-user] Trouble parsing the getcapability response.

Andrea Peri aperi2007 at gmail.com
Wed Dec 10 08:04:24 PST 2014


Hi,

I'm try to parsing with an xslt transform the WMS GetCapability
response of qgis-server.

I try this simple xsl parse:

<xsl:value-of select="/WMS_Capabilities/Service/Name"
xmlns="http://www.opengis.net/wms"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wms
http://qgis.org/wms_1_3_0.xsd" />

to retrieve the "name" of service,

The xml I try to parse is this:

<?xml version="1.0" encoding="utf-8"?>
<WMS_Capabilities
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3.0"
xmlns="http://www.opengis.net/wms"
xsi:schemaLocation="http://www.opengis.net/wms
http://qgis.org/wms_1_3_0.xsd">
 <Service>
  <Name>WMS</Name>
....


I guess the xpath
/WMS_Capabilities/Service/Name
is correct,
but it don't work.

Any helo is welcome.

Thx,

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------



More information about the Qgis-user mailing list