473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

xslt: making use of edit/delete buttons is that actually work?

I want to make an xslt file that formats and displays data from an XElement
object through an xml control. I need to have the xslt file show edit/remove
buttons next to each element/attribute that is displayed on the page. These
buttons/links do have to actually work in the sense that you can actually
edit/remove the particular element/attribute. Is there any way to do
something like this?
Jun 27 '08 #1
3 2023
"Andy B" <a_*****@sbcglobal.netwrote in message
news:uK**************@TK2MSFTNGP06.phx.gbl...
>I want to make an xslt file that formats and displays data from an XElement
object through an xml control. I need to have the xslt file show
edit/remove buttons next to each element/attribute that is displayed on the
page. These buttons/links do have to actually work in the sense that you
can actually edit/remove the particular element/attribute. Is there any way
to do something like this?
I'm sure there is, XSLT reformats XML. If you know the final output, in this
case it sounds like (X)HTML and you show the original input we can advise
further.
You may have to explain what XElement object is though, is that the LINQ-XML
XElement?

--

Joe Fawcett (MVP - XML)

http://joe.fawcett.name
Jun 27 '08 #2
You may have to explain what XElement object is though, is that the
LINQ-XML XElement?
Exactly what it is. As far as showing input, what do you mean by this? I
haven't designed any of the .net code yet, but what is supposed to happen is
this: There is a 9 step asp.net wizard that takes a person through creating
a "blank contract". During each step, the xml being built is shown on the
page below the wizard so the user can see their progress as they go through
the wizard. I need to make edit/remove buttons next to the different
elements/attributes so they can be edited/removed as needed. A good example
of this would be this: On step 1 of the wizard, the user is asked to enter
in an editbox the contract type to create. Since it is freehand writing, it
can be anything they type up to 30 characters long. When they press the add
button, a new view in the step shows up saying that the new "type" has been
created. When they press next for step 2, it takes them to the glossary step
of the wizard. On this step, the user enters word/definition pairs to be
added to the section. Below the wizard, there is the contract view as it has
been created so far. In this step, it would have the contract type and
whatever word/definition pairs they have added so far. These word/definition
pairs as well as anything added to the contract would have these buttons
next to them.

Does this help?

Jun 27 '08 #3
"Andy B" <a_*****@sbcglobal.netwrote in message
news:eU**************@TK2MSFTNGP06.phx.gbl...
>You may have to explain what XElement object is though, is that the
LINQ-XML XElement?
Exactly what it is. As far as showing input, what do you mean by this? I
haven't designed any of the .net code yet, but what is supposed to happen
is this: There is a 9 step asp.net wizard that takes a person through
creating a "blank contract". During each step, the xml being built is
shown on the page below the wizard so the user can see their progress as
they go through the wizard. I need to make edit/remove buttons next to the
different elements/attributes so they can be edited/removed as needed. A
good example of this would be this: On step 1 of the wizard, the user is
asked to enter in an editbox the contract type to create. Since it is
freehand writing, it can be anything they type up to 30 characters long.
When they press the add button, a new view in the step shows up saying
that the new "type" has been created. When they press next for step 2, it
takes them to the glossary step of the wizard. On this step, the user
enters word/definition pairs to be added to the section. Below the wizard,
there is the contract view as it has been created so far. In this step, it
would have the contract type and whatever word/definition pairs they have
added so far. These word/definition pairs as well as anything added to the
contract would have these buttons next to them.

Does this help?

(Sorry for late reply, my newsreader seems plagued by gremlins at the moment
and messages sometimes don't show for days)
I think I understand. The XSLT will create HTML that has edit buttons
against each element/attribute so the user can change their mind etc.
I'm sure this is doable but seems quite convoluted. Why not just bind the
XML to a gridview or similar and have the buttons part of the view?

--

Joe Fawcett (MVP - XML)

http://joe.fawcett.name
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sergio del Amo | last post by:
Hi, I use the xslt functions provided by php. I am running in my computer the package xampp(www.apachefriends.org) which includes php/apache/mysql .. In this package the php includes the sablotron...
4
by: DC | last post by:
Newbie's question about .NET datagrid If I use: <asp:EditCommandColumn></asp:EditCommandColumn> When I edit a row, it will automatically show Update and Cancel Link. But when I use:...
4
by: z. f. | last post by:
Hi, i stated that this is an advanced question because i have a post from few days ago that i received answers to with suggestions that looked good but did not work, so please if you post a...
3
by: vcornjamb | last post by:
Hello, I am developing a web form that contains some buttons and a data grid which has as its last column link buttons that will delete the data associated with that row. Everything works fine,...
4
by: rkbnair | last post by:
Is there any way to display an image button instead of the traditional Edit/Update/Cancel push button in a datagrid (with bound data)?
3
by: thomas.porschberg | last post by:
Hi, I want to read records from a database and export it in an arbitrary format. My idea was to feed a class with a String array fetched from the database and let this class fire SAX events as...
0
by: Andy B | last post by:
I want to make an xslt file that formats and displays data from an XElement object through an xml control. I need to have the xslt file show edit/remove buttons next to each element/attribute that...
5
by: Andy B | last post by:
I have 2 TextBoxes and an Add button on a page. When the user fills in the TextBoxes, the values are added to a dataset table. When the page gets done reloading, the TextBoxes are turned into...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.