Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Posts
    187
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Editing xml data through xslt using contenteditable?

    Hi,
    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.

    Regards,
    Phill

  • #2
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,253
    Thanks
    12
    Thanked 341 Times in 337 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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •