xsl-list
[Top] [All Lists]

overriding select in xsl for-each loop

2005-02-19 09:40:20
hello,

i have a select in my xsl for each loop as given below in a stylesheet Exam.xsl

<xsl:for-each select="Exam/Question">   
----- some statements in xforms
some xsl statements
---- some xforms statements
</xsl:for-each>


this  Exam.xsl is an input to another style sheet - xhtml.xsl in which every 
xforms control in this style sheet is being transformed into an equivalent 
xhtml control. my problem is that for this Exam.xsl the input is an xml from 
which this Exam/Question is being brought - called as Question.xml i have 
imported this xml in my xhtml.xsl using the 

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

i wanted to override the select in the above xsl for each loop and substitute 
Exam/Question with $srcxml//Question before the conditions are checked in my 
xsl for each loop.

my problem is that iam not able to make my xsl for each change its select at 
run time thereby the conditions are not being checked and its giving wrong 
output. can someone please help as to how to overcome this problem

i am not sure whether my problem is clear

hopefully if it is suggest something

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>
--~--



<Prev in Thread] Current Thread [Next in Thread>
  • overriding select in xsl for-each loop, Prasad Akella <=