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]
Other format: [Raw text]

last() or preceding node if last() have empty text-node selection


Hello friends,

i encounter some small problem and i don´t have find a solution.

I want to select the string from the last position, but if it is empty, then
i want select, the preceding text-node DARBEDINGUNG.laufzeitbis, here
20.10.2002

xml-source snippet:

<DARBEDINGUNG num="0">
<DARBEDINGUNG.laufzeitbis>20.10.2002</DARBEDINGUNG.laufzeitbis>
</DARBEDINGUNG>
<DARBEDINGUNG DARBEDINGUNG="select" num="1">
<DARBEDINGUNG.laufzeitbis></DARBEDINGUNG.laufzeitbis>
</DARBEDINGUNG>

i am trying following:

<xsl:if test="//DARBEDINGUNG[last()]/DARBEDINGUNG.laufzeitbis != '' ">
			<xsl:value-of
select="//DARBEDINGUNG[last()]/DARBEDINGUNG.laufzeitbis"/>
</xsl:if>

Obviously it does not work!

Please excuse my simpe newbie question.

Thanks,


 
Hans Braumüller 
-- + -- 
Networking Artist
http://crosses.net
http://kunstserie.com

 

 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]