Hey Keith!
Please try this site: http://www.w3schools.com/xsl/xsl_transformation.asp
Write if added info needed, good luck!
Dököll
Thanks for that. As it happens that was the site I taught myself XSLT from in the first place. I can't find any answer there (though I may have missed it somehow)
As my later post suggest, the issue is kind of complex.
Firstly I should acknowledge, I am trying to push the limits alot.
My theory is that the XML and the XSLT are usually loaded into the browser then the XML is parsed to produce the displayed text.
What I want is for the displayed text to include javascript that edits the XML that was used to generate it (effectively to produce a self editing page)
All this was to happen in the browser and the file would then be sent back to the server only on the issuing of a save command.
To be clearer,
I am trying to build a map viewer/editor.
I want the user to maintain a map view that might be described as follows...
[HTML]
<map>
<image src="map/image/file.jpg" xleft="12/59/00" xright="12/59/02.5" ytop="72/23/17.0" ybottom="72/23/17.5"/>
<annotations>
<icon type="town" xloc="12/59/01.123" yloc = "72/23/17.12"/>
<icon type="town" xloc="12/59/02.001" yloc = "72/23/17.11"/>
<icon type="bridge" xloc="12/59/01.529" yloc = "72/23/17.17" rot="72.4"/>
</annotations>
</map>[/HTML]
This is parsed to an SVG file that displays the base image with the icons superimposed over it.
In addition the SVG has scripts that allow new icos to be added.
Each icon would be inserted into the annotations collection, and the XML reparsed to update the on-screen display.
Finally if save was hit, the XML would then be sent back for server-side retention if it passed all security/validity tests.
This is only one example of what I'm trying to do, but should give a clearer idea of the problems I'm facing.
In particular,
How do I edit the underlying XML in the browser?
How do I cause the browser to reparse the modified XML with the XSLT to refresh the displayed result?
Many thanks,
Keith Ealanta