473,763 Members | 1,320 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2047
"Andy B" <a_*****@sbcglo bal.netwrote in message
news:uK******** ******@TK2MSFTN GP06.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_*****@sbcglo bal.netwrote in message
news:eU******** ******@TK2MSFTN GP06.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
2712
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 extension responsible for the xslt functions. The problem i have is that the obtained transformation is not the waited one. I try to proccess the same XML file with XSL file with a program called XMLspy and i obtained the desire and waited...
4
4413
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: <asp:Button id="btnEdit" runat="server" Text="Edit" CommandName="Edit" CssClass="clickable"Width="50px" /> When I edit a row, the Update/Cancel links don't show up.
4
2016
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 reply make sure your suggestion actually works. like a <asp:button> control have a CausesValidation property that allows it to POST a button command event to the server without causing the page to make validation on form inputs, i need to get the...
3
2793
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, but users have requested a confirmation message pop up so the user can confirm the delete. I can not quite get this to work. Here are the facts: I am working in the Microsoft Development Environment 2003 (Version
4
6947
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
2010
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 processor input. The basic class hierarchy is:
0
790
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 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?
5
2032
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 readonly mode, the requiredFieldValidaters are set to disabled, the character counter for each textbox is made invisible and edit buttons show up next to the read only textboxes. I want to make the Add button invisible and then make a save changes...
0
9563
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9938
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9822
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.