[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Copying and inserting nodes on a tree

Subject: Copying and inserting nodes on a tree
From: António Mota <amsmota@xxxxxxxxx>
Date: Fri, 11 Mar 2005 18:09:46 +0000
xml dom copy a tree
Hi again:

My current project is to design a data-entry web-based combination of
grid/form with data comming from a table. I'm doing it with XML/XSL,
JavaScript, and the DOM.

So far so good, it's looking great. However i have a problem with
updated and new inserted values on the grid and form, that is the
finality of the app anyway.

Since i'm aplying a XSL several times to display a form, i thought of
storing the changed values in the original XML by means og XSL. This
is working, i pass as parameters a key that uniquely identify the node
i want to update and the repective value.

However i don't know how to handle the new nodes insertion. I'm thinking

1) Copy a similar node and change some of it's values. This mean to
process a node of the original tree twice, to get a insertion on the
output tree.

2) Create a entire node by passing parameters to the xsl.

3) Creating a DOM node and to pass it as a parameter, or using
document() (!!) and inserting it in the ouput three(??)

But i have some troubles:

First, i don't really know how to do any of these (more or less) and

Second, isn't this a misuse of XSLT? I don't know why but i don't
"feel" good about this.

Anyone have had similar situations?

Thanks again.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.