xsl-list
[Top] [All Lists]

Re: changing value of select in xsl:for-each

2005-02-21 09:17:59
Just a hunch, but take a look at call-template with-param.


On Mon, 21 Feb 2005 15:56:17 +0100, Prasad Akella 
<avlnprasad(_at_)web(_dot_)de> wrote:
hello,

I have not yet been able to solve my problem. i would like to change the 
value of my select attribute in my xsl:for-each loop written in my first 
stylesheet when this first stylesheet is being used by another second 
stylesheet to change the controls. is this possible. i want to change because 
my first stylesheet is interacting with an xml from which the data is coming, 
but my second stylesheet is not interacting with that xml. i am using a 
variable to assign the source of that xml being used in first stylesheet so 
that it can be used where necessary in my second stylesheet but do not know 
how to change that in my xsl:for-each select="";

as of now i have

<xsl:for-each select="Exam/Question">

in my first stylesheet.

this i would like to change to

<xsl:for-each select="$srcxml//Question">

in my second stylesheet as i am using

<xsl:variable name="srcxml" select="document('Exam.xml')"/>

please suggest some idea or change. i am stuck with this and am not able to 
proceed.  actually it would be great if i can tell my second stylesheet that 
it has to use everywhere Exam.xml as the source whenever it encounters any 
xpath statement. but am not sure how totell it. please advise

with regards,
prasad akella
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--