[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: last() or preceding node if last() have empty text-node selection
From: "Braumüller, Hans" <h.braumueller@xxxxxxxxxxxx>
Date: Fri, 24 May 2002 11:56:20 +0200
preceding node
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.