Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / May 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy B - 21 May 2008 05:13 GMT
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?
Joe Fawcett - 22 May 2008 08:41 GMT
>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?

Signature

Joe Fawcett (MVP - XML)

http://joe.fawcett.name

Andy B - 22 May 2008 13:18 GMT
> 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?
Joe Fawcett - 29 May 2008 07:22 GMT
>> You may have to explain what XElement object is though, is that the
>> LINQ-XML XElement?
[quoted text clipped - 18 lines]
>
> 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?

Signature

Joe Fawcett (MVP - XML)

http://joe.fawcett.name


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.