Re: [mapserver-users] xslt transfofmr on getcapabilites of tinyows
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 aperi2...@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 aperi2...@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.cour...@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 aperi2...@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=WFSREQUEST=GetCapabilitiesversion=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Olivier -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- Olivier ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] xslt transfofmr on getcapabilites of tinyows
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=WFSREQUEST=GetCapabilitiesversion=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] xslt transfofmr on getcapabilites of tinyows
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 aperi2...@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=WFSREQUEST=GetCapabilitiesversion=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Olivier ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] xslt transfofmr on getcapabilites of tinyows
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.cour...@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 aperi2...@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=WFSREQUEST=GetCapabilitiesversion=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Olivier -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] xslt transfofmr on getcapabilites of tinyows
I open a ticket for this issue on keyword. https://github.com/mapserver/tinyows/issues/61 Regards. 2013/7/16 Andrea Peri aperi2...@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.cour...@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 aperi2...@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=WFSREQUEST=GetCapabilitiesversion=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Olivier -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users