Changes between Version 1 and Version 2 of XMLMapfiles


Ignore:
Timestamp:
Sep 25, 2009, 6:42:13 AM (15 years ago)
Author:
aboudreault
Comment:

Added a few explanations

Legend:

Unmodified
Added
Removed
Modified
  • XMLMapfiles

    v1 v2  
    1111Coming soon ...
    1212
    13 == Getting Started: where to get the XML schema and XSLT? ==
     13== Getting Started: where to get the XML schema and XSL file? ==
    1414
    15 Coming soon ...
     15The XML schema and the XSL file are included with the distribution in the '''xmlmapfile''' directory.[[BR]]
     16 * mapfile.xsd : The XML schema used to validate a XML mapfile.[[BR]]
     17 * mapfile.xsl : The XSL file used by XSLT to convert a XML mapfile into a regular mapfile.
     18
     19== What kind of XML files can I create using the schema? ==
     20
     21You can create 3 XML file types:
     22 * A complete XML mapfile: <Map ...></Map>
     23 * A XML file for your layers: <LayerSet ...><Layer ...></Layer>...</LayerSet>
     24 * A XML file for your symbols: <SymBolSet><Symbol ...></Symbol></SymbolSet>
     25
     26There is one exampe of each type in the '''xmlmapfile/tests''' directory.
    1627
    1728== How to use the XML schema? ==
    1829
    19 Coming soon ...
     30If you are using a XML editor like XMLSpy or XMLPad, you can easily specify the XML schema used to validate your current XML document. Furthermore, those editors will provide XML completition by listing allowed tags/attributes, automatic validation and more..
     31
     32If you prefer, you can also use a normal text editor. On Linux, there is a few tools to validate a XML file with its schema. On Ubuntu, you can do the following command:
     33{{{
     34apt-get install xmlstarlet
     35xmlstarlet val -e --xsd mapfile.xsd my-new-mapfile.xml
     36}}}
    2037
    2138== How to convert an XML mapfile to regular mapfile using the XSLT? ==
    2239
    23 Coming soon ...
     40If you are using a XML editor, you can easily specify the XSL file to use and transform the document.
     41
     42On Ubuntu, you can do the following command:
     43{{{
     44apt-get install xsltproc
     45xsltproc my-new-mapfile.xml > /tmp/my-regular-mapfile.map
     46}}}