Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

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

Question posted by: Andy B (Guest) on June 27th, 2008 07:20 PM
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?


Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Joe Fawcett's Avatar
Joe Fawcett
Guest
n/a Posts
June 27th, 2008
07:20 PM
#2

Re: xslt: making use of edit/delete buttons is that actually work?
"Andy B" <a_borka@sbcglobal.netwrote in message
news:uKoP9jvuIHA.4476@TK2MSFTNGP06.phx.gbl...
Quote:
Originally Posted 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?
>

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



Andy B's Avatar
Andy B
Guest
n/a Posts
June 27th, 2008
07:20 PM
#3

Re: xslt: making use of edit/delete buttons is that actually work?
You may have to explain what XElement object is though, is that the
Quote:
Originally Posted by
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's Avatar
Joe Fawcett
Guest
n/a Posts
June 27th, 2008
07:20 PM
#4

Re: xslt: making use of edit/delete buttons is that actually work?
"Andy B" <a_borka@sbcglobal.netwrote in message
news:eUkhtXAvIHA.5472@TK2MSFTNGP06.phx.gbl...
Quote:
Originally Posted by
Quote:
Originally Posted by
>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



 
Not the answer you were looking for? Post your question . . .
182,268 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors