Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
05-04-2012, 10:42 AM #1
- Join Date
- Mar 2006
- Thanked 0 Times in 0 Posts
Editing xml data through xslt using contenteditable?
Im a complete noob in respects to xslt. Here is what I want to do.
Create an html page from an xml document using xslt.
The html page will allow the user to edit the data using the contenteditable attribute.
I then want to be able to reflect these changes in the orriginal underlying xml document. Either based on an "as you type" basis if possible, or by clicking a save button.
My question is is this possible? Or would I be better off doing it some other way. I plan to implement this in to a Python program using the WebKit engine in Qt.
05-05-2012, 11:41 AM #2
- Join Date
- Jan 2010
- Behind the Wall
- Thanked 427 Times in 423 Posts
you’ll have to use some kind of programming language to save the changes, as XSLT requires XML input (HTML doesn’t work).
and even "save as you type" would not be suited for XSLT since XML processing requires a lot of resources.
The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.André Behrens, NY Times Software Developer