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

Subject: Re: [xsl] changing value of select in xsl:for-each
From: António Mota <amsmota@xxxxxxxxx>
Date: Mon, 21 Feb 2005 18:24:10 +0000
Excelent, thanks for that.


On Mon, 21 Feb 2005 19:21:01 +0100, Prasad Akella <avlnprasad@xxxxxx> wrote:
> yup sure,
> 
> the first to start in order to get an overview would naturally be www
> in addition u can get this online book just type xforms essentials in google u would get the book once u can go through it
> you can download some browsers for testing like xsmiles, Novel xforms technology preview, u can also include certain tags given by forms player people and run these xforms programs in normal browsers
> or u can lookinto some server side stuff like Chiba, Deng, Orbeon Presentation Server, IBM xforms
> 
> in case u need something specific shoot something, i would try to help as far as my knowledge goes since i am also begining.
> 
> thanks anyway for the call template suggestion
> 
> am looking into it
> 
> with regards,
> Prasad Akella
> 
> xsl-list@xxxxxxxxxxxxxxxxxxxxxx schrieb am 21.02.05 18:12:46:
> >
> > That's seems too complicated for me to grasp...
> >
> > BTW, i probably will have to do some work based on XForms, but i don't
> > know where to start. Can you give me some points to it?
> >
> > Thanks.
> >
> >
> > On Mon, 21 Feb 2005 18:05:46 +0100, Prasad Akella <avlnprasad@xxxxxx> wrote:
> > > i am not sure it works
> > >
> > > my problem is like this
> > >
> > > I have stylesheet A.xsl which is used to transform some Exam.xml into Xforms.
> > >
> > > I am using another stylesheet B.xsl which takes A.xsl as input and transforms all the Xforms controls into Xhtml controls. the problem is iterating and displaying data in the xhtml controls from the Exam.xml which does not have any mention in B.xsl. i have this xsl:for-each select="Exam/Question" in A.xsl and i would like to dynamically change it to some variable assigned xml so that that the rest of the rendering is done. my problem is as of now since there is no Exam/Question all the cases inside the xsl:for-each are not rendered and are false. how to make them true and work is not gettign into my dumb head.
> > >
> > > in case someone would like to know more i can put some code
> > >
> > > kindly suggest and advice
> > >
> > > with regards,
> > > Prasad Akella
> > >
> > > xsl-list@xxxxxxxxxxxxxxxxxxxxxx schrieb am 21.02.05 17:18:14:
> > > >
> > > > Just a hunch, but take a look at call-template with-param.
> > > >
> > > >
> > > > On Mon, 21 Feb 2005 15:56:17 +0100, Prasad Akella <avlnprasad@xxxxxx> 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
> > > >
> > >
> > > ______________________________________________________________
> > > Verschicken Sie romantische, coole und witzige Bilder per SMS!
> > > Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
> >
> 
> __________________________________________________________
> Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
> weltweit telefonieren! http://freephone.web.de/?mc=021201

Current Thread