[mapserver-users] xslt transfofmr on getcapabilites of tinyows

Olivier Courtin olivier.courtin at gmail.com
Wed Jul 17 02:15:50 PDT 2013


Hi Andrea,

First i could not reproduce your problem with TinyOWS.
I use trunk version (so really close to 1.1.0).

Could you provide tinyows -h output ?
Could you provide tinyows config file ?



Second, i could not reproduce your problem with XPath either ^^
as following works for me:


xsltproc foo.xsl capa.xml

With foo.xsl:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template>
  <xsl:value-of select="//FeatureTypeList/FeatureType[1]/Name" />
</xsl:template>

</xsl:stylesheet>


HTH,

O.



On Tue, Jul 16, 2013 at 11:53 PM, Andrea Peri <aperi2007 at gmail.com> wrote:
> I open a ticket for this issue on keyword.
>
> https://github.com/mapserver/tinyows/issues/61
>
> Regards.
>
>
> 2013/7/16 Andrea Peri <aperi2007 at gmail.com>
>>
>> Hi,
>>
>> I test it with a validate tool,
>> Effectively there was an error.
>>
>> > Element <Keywords> is not allowed under element <FeatureType>.
>>
>> So I remove the keywords definition from my tiny config.xml,
>>
>> After this the xml was valid, but always the
>>
>> <xsl:value-of select="//FeatureTypeList/FeatureType/Name" />
>>
>> don't return the right value.
>>
>>
>>
>>
>>
>> 2013/7/16 Olivier Courtin <olivier.courtin at gmail.com>
>>>
>>> If you have a doubt on a XML provided by a WFS server,
>>> there's OGC XSD you could use to validate against.
>>> (look in tinyows/schema dir)
>>>
>>> O.
>>>
>>> On Tue, Jul 16, 2013 at 5:39 PM, Andrea Peri <aperi2007 at gmail.com> wrote:
>>> > Hi,
>>> >
>>> > I'm try.ing to trasform an xml from tinyows.
>>> >
>>> > But it seem don't work.
>>> >
>>> > Perhaps there a problem with the xml of tiny ?
>>> >
>>> > On this call:
>>> >
>>> >
>>> > http://www502.regione.toscana.it/wfsvector/com.rt.wfs.RTmap/wfs?SERVICE=WFS&REQUEST=GetCapabilities&version=1.1.0
>>> >
>>> > I'm trying to apply this trasformation:
>>> >
>>> > <xsl:value-of select="//FeatureTypeList/FeatureType[1]/Name" />
>>> >
>>> > to retrieve the name of first FeatureType.
>>> >
>>> > But the xsltproc always return null.
>>> >
>>> > I'm not sure of my xpath, but it seem ok,
>>> >
>>> > Any help is welcome.
>>> >
>>> > --
>>> > -----------------
>>> > Andrea Peri
>>> > . . . . . . . . .
>>> > qwerty àèìòù
>>> > -----------------
>>> >
>>> > _______________________________________________
>>> > mapserver-users mailing list
>>> > mapserver-users at lists.osgeo.org
>>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>> >
>>>
>>>
>>>
>>> --
>>> Olivier
>>
>>
>>
>>
>> --
>> -----------------
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -----------------
>
>
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------



-- 
Olivier


More information about the mapserver-users mailing list