pure xslt

Please who can provide me with samples of [b]pure[/b] xslt. Because, as a beginner other languages are not helping me understand what really pure xslt can do to transform GML to SVG.

any additional suggestion is appreciated.

pure xslt

Dear jnicho02, and all

I am thankful for the xslt introductory. I was studying the British OS sample xslt.
In my trial I was able to see the simple svg map. But I wonder why the transform-matrix, which I learn from the OS sample is not working to mirror my map along the X-axis. Is it because it lacks additional info? Basically my data lacks additinal coordinate information like "srsName" and others. (I would be happpier if I have a way to do it on the application schema of mine, and thus in the gml file, and then make it useful in xslt-svg transformation.) The whole idea is to get the map in its correct position in a simple or atleast uncomplicated xslt.

If this question is a bit unprofessional, you may explain me the differences between MATRIX, SCALE(1 -1), ROTATE(180), and why one of these is not working for me. Because I tried them so many times, and couldn't learn any thing despite the plain knowledge I have why they are used, not how. What things should I consider to reverse the svg Y-axis problem.

Many thanks,

Ordnance Survey


there's some xslt on the Ordnance Survey site that might be of help too.


As a caveat, I would say that your xml samples should be smallish. Client-side processing may be a bit heavy for larger files, in which case you would process it on a server (e.g. a servlet calling Apache Xalan).

For more info on xslt I recommend anything by Dr Jeni Tennison

It would be nice if there were an xslt stylesheet with some basic gml transformations (e.g. parseCoordinates, getXRelativeToRefPoint, getShapeFromPoints(Point[])). Maybe this already exists somewhere?


simplest way....get IE or Firefox to process the xslt for you.

as a 2nd line in your xml file add

then create an xslt stylesheet called yourfilename.xsl. The namespaces will need to match that of your xml.


then open the xml file in IE...it should list all your Points.

Producing svg will involve working with the points relative to a reference point.
I'd welcome any input for "the simplest possible svg transformations".