Subject: Re: [xsl] Getting desired node on template match From: "J.Pietschmann" <j3322ptm@xxxxxxxx> Date: Wed, 11 Sep 2002 21:55:10 +0200 |
But please do not get angry.
I'm not angry. I just don't think that teaching XSLT from the very basics by email is something I should do. Anyway...
<go href="action"> <!--HERE I ACTUALLY WANT TO TAKE THE VALUE OF ACTION ATTRIBUTE OF FORM FOR HREF AND METHOD FROM METHOD OF FORM -->
Take your XSLT book and reead again about the basic concepts. There are elemens which are instructions for the XSLT processor. All other elements get copied through to the output, including literal attributes. Your task: which elements are instructions for the XSLT processor. Is the go element above such a statement? What will happen if the template with the lement above is executed?
Next: you get something into the output which you don't want. Why is the output the way it is? You want data from the input XML. This means you have to tell the XSLT processor to execute something to get it. Assuming you know how it looks like, how do you get it executed and the result (the data form the input XML) at the place where you want it? Hint: look up AVT (attribute value template) in your book.
Next: You have to construct the proper expression to get the desired data. Hint: You have some part of it already in your XSLT.
Did you actually write anything of the rest of the code you posted?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Getting desired node on t, David Carlisle | Thread | Re: Re: [xsl] Getting desired node , alex ek |
Re: [xsl] document() function: erro, J.Pietschmann | Date | Re: [xsl] encoding and XSL Transfor, Mike Brown |
Month |