Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

In-memory XML Doc not XSL Transforming Correctly After Modification.

Status
Not open for further replies.

Ken215

Technical User
Jan 4, 2007
1
US
I'm writing an XML Schema Editor as part of a larger web app. I've written an XSL stylesheet that processes the schema. It displays the various complex and simple types that are defined in the schema and outputs them as html with associated buttons for deleting and adding elements and for deleting existing and defining new complex and simple types. The app is to work for IE and Firefox.

The HTML is mostly javascript in the head section with the body containing an empty div object that is populated with the XSL transform of the XML (schema) doc.

I get the XML (xsd schema) and XSL stylesheets to load and perform the initial tranform with no problem. After that users are allowed to make changes to the in-memory schema document and to save the document when they're done. I've have gotten all the delete features to work as expected, but I'm having problems with the features that allow the user to add a new complex type, simple type, or an element type to an existing complex type. I've printed out the XML and it appears that the XML schema doc is being updated as expected, but when I create a new XSL processor from the in-memory XSL document and have it tranform the schema doc, the newly added pieces that are residing in the XML doc are not appearing in the html results.

Does anybody have any idea what the problem might be. I would sure appreciate any suggestion or ideas you can provide. I have to go now, but I can post more about it tomorrow if that will help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top