[mapserver-users] XML mapfile

Alan Boudreault aboudreault at mapgears.com
Fri Aug 19 10:06:35 EDT 2011


Good work Ludovic. That's what I thought. You initially tried to use LayerSet 
*inside* the Map tag, which is invalid. LayerSet is only used when we put the 
layers in another xml file.

Alan

On August 19, 2011 10:04:35 am Ludovic Granjon wrote:
> Ok it seems to be ok, my mapfile xml is valid and I can generate a .map
> who work fine.
> I join my minimum mapfile.
> Thanks Alan
> 
> Le 19/08/2011 15:34, Ludovic Granjon a écrit :
> > Yes no problem
> > http://pastebin.com/fPz6qgXx
> > Thanks
> > 
> > Le 19/08/2011 15:17, Alan Boudreault a écrit :
> >> Paste your mapfile on pastebin.com if you can.
> >> 
> >> Alan
> >> 
> >> On August 19, 2011 08:40:39 am Ludovic Granjon wrote:
> >>> Thanks Alan
> >>> 
> >>> Yes that's what I try to do but when I try to launch xmlstarlet I
> >>> always
> >>> have an invalid mapfile;
> >>> for exemple I join my mapfile
> >>> And the message of xmlstartlet is :
> >>> 
> >>> "mapfile-test_ludo.xml:69: element LayerSet: Schemas validity error :
> >>> Element '{http://www.mapserver.org/mapserver}LayerSet': This element is
> >>> not expected. Expected is ( {http://www.mapserver.org/mapserver}Web )."
> >>> 
> >>> If I delete the LayerSet bloc it's ok but  it's annoying ...
> >>> 
> >>> If I try with my very little mapfile.map, it seems that it always miss
> >>> some bloc so I must insert legend, scalebar, etc
> >>> 
> >>> Thanks for your help
> >>> 
> >>> Ludovic
> >>> 
> >>> Le 19/08/2011 14:20, Alan Boudreault a écrit :
> >>>> IIRC, the mapfiles in svn were only to test translation and
> >>>> loading. You
> >>>> can take a small standard mapfile you have and write it in xml. It
> >>>> should be very straighforward and you can use the svn mapfiles as
> >>>> example.
> >>>> 
> >>>> Let me know if you need further help.
> >>>> 
> >>>> Alan
> >>>> 
> >>>> On August 19, 2011 07:42:17 am Ludovic Granjon wrote:
> >>>>> Hello
> >>>>> Someone is using mapfiles in xml?
> >>>>> I tried but it does not work, is there such a minimal mapfile in
> >>>>> xml to
> >>>>> try? Is there a documentation ? I tried unsuccessfully
> >>>>> http://trac.osgeo.org/mapserver/browser/trunk/mapserver/xmlmapfile
> >>>>> Thanks
> >>>>> 
> >>>>> Ludovic
> > 
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com


More information about the mapserver-users mailing list