This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

storing a variable value using <script> tags in between


Is it possible for me to do the following:

<xsl:variable name="qNum">
<SCRIPT>
parent.qNo;
</SCRIPT>
</xsl:variable>

so as to get the value of the variable qNo equal to qNum?  Cos when I try
this
<xsl:value-of select="$qNum"/>
I get this:
parent.qNo;

while it should be a number....
and when I try this:
<xsl:template
match="Categorydefs/CategoryDef/QuestionDefs/QuestionDef[position()=$qNum]">
I get that "Variables may not be used within this expression.
Categorydefs/CategoryDef/QuestionDefs/QuestionDef[position()=-->$qNum<--]"

Can anyone please help me here?

thanx!! :)

Rosa

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]