Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > xsl:function does abort just after the call of the function

Reply
Thread Tools

xsl:function does abort just after the call of the function

 
 
schaf
Guest
Posts: n/a
 
      05-29-2005
Hi !
I'm writing a new xsl:function, which uses two other functions. But by
the call of the first function, it would be abort just after the call.
Not even the xslaram would be set.
I don't have any idea, why this works like this. Could you please help
me ?

Here my xsl-code:

<xsl:function name="rsh:bestanden">
<xslaram name="studiumTyp" as="xs:string"/>
<xslaram name="kursTyp" as="xs:string"/>
<xsl:variable name="minPunkte"
select="$study-def/studium[@studiumID=$studiumTyp]/studiumTeil[@studiumTeilID=$kursTyp]/ECTSPunkte"/>

<xsl:variable name="summeECTSPunkte">
<v>0</v>
<xsl:for-each
select="$study-def/studium[@studiumID=$studiumTyp]/studiumTeil[@studiumTeilID=$kursTyp]/kursRef">
<xsl:variable name="kursID" select="@ref"/>
<!--The call of the rsh:noteByKursID...does not work! Why ???-->
<xsl:variable name="kursNote"
select="rsh:noteByKursID($kursID)"/>
<xsl:if test="$kursNote != 'F'">
<v><xsl:value-of
select="rsh:ECTSPunkteByKursID($kursID)"/></v>
</xsl:if>
</xsl:for-each>
</xsl:variable>
<xsl:choose>
<xsl:when test="sum($summeECTSPunkte/*) &lt; $minPunkte">
<xsl:sequence select="'false'"/>
</xsl:when>
<xsltherwise>
<xsl:sequence select="'true'"/>
</xsltherwise>
</xsl:choose>
</xsl:function>

<xsl:function name="rsh:noteByKursID">
<xslaram name="parKursID" as="xs:string"/>
<xsl:sequence
select="$person-ref/var[position()=var[node()=$parKursID] +
1]/wert"></xsl:sequence>
</xsl:function>

<xsl:function name="rsh:ECTSPunkteByKursID">
<xslaram name="kursID" as="xs:string"/>
<xsl:variable name="lektionen"
select="$study-def/kurs[@kursID=$kursID]/lektionen"/>
<xsl:sequence select="if($lektionen &gt;= 12) then($lektionen
div 12) else(0)"/>
</xsl:function>

Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call to PyEval_EvalCodeEx crashes in PyFrame_New with abort grbgooglefan Python 1 04-07-2009 05:35 PM
XMLHttpRequest abort() and subsequent error in call to onreadystatechange Peter Michaux Javascript 2 10-28-2006 03:08 PM
XHR abort(): IE hangs after two aborts. Sri Javascript 0 09-29-2006 05:50 PM
Abort a system call Masschelein Bart Ruby 2 07-04-2005 01:35 PM
write a function such that when ever i call this function in some other function .it should give me tha data type and value of calling function parameter komal C++ 6 01-25-2005 11:13 AM



Advertisments