OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] How To Modify the Contents Of XML Document Dynamically?

[ Lists Home | Date Index | Thread Index ]

>
> Let's say I have following XML:
>
> ...
> <NOTE>
>   <NAME> xxx </NAME>
>   <DATE> ddd </DATE>
>   <DESCRIPTION />
> </NOTE>
> ...
>
> When this is displayed in the browser using XSL, I would like
> to make the
> <DESCRIPTION /> part of this XML modifiable to viewers.

That means you have to generate an input field as part of the HTML page you
are generating.
 And
> also, after
> modifying this section, this XML should take the input and
> store it into the XML file (itself).
>
That means you have to write JavaScript code that deals with the input
entered by the user into the HTML input field, and supply it as a parameter
to another XSLT transformation that transforms the original XML file into
the modified XML file. You don't explain your system configuration, but it's
probably simpler to do this second transformation on the server.

Mike Kay





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS