xsl-list
[Top] [All Lists]

gml transformation

2004-05-20 08:02:28
hello,
I m newbie in xsl. I have a gml(geography Markup Language)file that 
I tried to transform it to svg format using xslt but the result is always a 
white page.

from this can you help me to construct the xsl file corresponding 
for this attached gml file because Ihave problem to extract the coordinates of 
the two lines.
Thanks advanced.


<?xml version="1.0" encoding="UTF-8"?>
<!-- File: cambridge.xml -->
<CityModel xmlns="http://www.opengis.net/examples"; 
xmlns:gml="http://www.opengis.net/gml"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; 
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"; 
xsi:schemaLocation="http://www.opengis.net/examples  D:\schemas\City.xsd">
        <gml:name>Cambridge</gml:name>
        <gml:boundedBy>
                <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>
                        <gml:coord>
                                <gml:X>0.0</gml:X>
                                <gml:Y>0.0</gml:Y>
                        </gml:coord>
                        <gml:coord>
                                <gml:X>100.0</gml:X>
                                <gml:Y>100.0</gml:Y>
                        </gml:coord>
                </gml:Box>
        </gml:boundedBy>
        <cityMember>
                <River>
                        <gml:description>The river that runs through 
Cambridge.</gml:description>
                        <gml:name>Cam</gml:name>
                        <gml:centerLineOf>
                                <gml:LineString 
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>
                                        <gml:coordinates>0,50 70,60 
100,50</gml:coordinates>
                                </gml:LineString>
                        </gml:centerLineOf>
                </River>
        </cityMember>
        <cityMember>
                <Road>
                        <gml:name>M11</gml:name>
                        <linearGeometry>
                                <gml:LineString 
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>
                                        <gml:coordinates>0,5 20.6,10.7 
80.5,60.9</gml:coordinates>
                                </gml:LineString>
                        </linearGeometry>
                        <classification>motorway</classification>
                        <number>11</number>
                </Road>
        </cityMember>
        <cityMember xlink:type="simple" xlink:title="Trinity Lane" 
xlink:href="http://www.foo.net/cgi-bin/wfs?FeatureID=C10239"; 
gml:remoteSchema="city.xsd#xpointer(//complexType[(_at_)name='RoadType'])"/>
        <dateCreated>2000-11</dateCreated>
</CityModel>




____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


<Prev in Thread] Current Thread [Next in Thread>