[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|