473,387 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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 xsl:param 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">
<xsl:param name="studiumTyp" as="xs:string"/>
<xsl:param 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>
<xsl:otherwise>
<xsl:sequence select="'true'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:function>

<xsl:function name="rsh:noteByKursID">
<xsl:param 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">
<xsl:param 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

Jul 20 '05 #1
0 1378

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Simon Harvey | last post by:
Hi everyone, I am fairly new to learning about xsl and xml, but one thing I have noticed is that anyone offering a tutorial or lesson on it seems to think that its the most incredible invention...
29
by: Thomas | last post by:
Hi I have an XSL stylesheet: <xsl:for-each select="TRACKS/TRACK"> <tr class="TDL"> <td width="90%"><xsl:number value="position()" format="1" /> - <xsl:value-of select="TRACKTITLE"/></td>...
12
by: Mark Constant | last post by:
I have a drop-down list now and I got it so when something is selected from the drop down list it calls a JavaScript function. I want it so the value selected from the drop-down list is sent as a...
2
by: Remi COCULA | last post by:
When using xsl:call-template it seems that we can't use a parameter as the name of the template to call. Example : <xsl:template name="cadre"> <xsl:param name="p_contenu"/> ...
3
by: Sebastian Gunreben | last post by:
Hi, I spent quite some weeks seaching google groups for a solution, but unfortunatly I didn't find anything matching my problem. Perhaps some of you has an idea ... My XML file looks as...
9
by: Tjerk Wolterink | last post by:
I have an xsl file wich xsl:includes this file: <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml"...
3
by: Don | last post by:
Hi: I have an ASP.NET application to with one page that renders XML/XSLT. The initial purpose was to have the page setup, then make any changes to an XSL file and have the changes immediately...
1
by: lele1979 | last post by:
Hi XSL Community, I would do a file in PDF with FO and XSL/XML tecnology. In a precisely moment of a creation of this PDF file I must call a precisely template from a precisely XSL file, that...
1
by: grego122 | last post by:
Just starting to get heavy into xslt. I'm particularly interested in xslt 2.0 and the use of regular expressions, etc. I'm trying to figure out how I can return an element from a function. My...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.