[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] How do I use following right????????? urgent
Ok, I have the following code. Since I need 2 (3,with the bling seperating td) tds in a row, I want to find out the B2B/RUBRIK/@name of the following node. Sadly, this code does not seem to work: <xsl:template name="mitte"> <table border="0" width="366" align="center" cellpadding="0" cellspacing="0"> </tr> <xsl:for-each select="B2B/RUBRIK"> <xsl:sort select="RUBRIK/NR"/> <tr> <xsl:variable name="NAME"><xsl:value-of select="@name"/></xsl:variable> <xsl:if test="pan:LetpanVar(1,string($NAME))"/> <xsl:variable name="RUBRIKEN" select="pan:load('/b2b/data/%.xml','',-1,false())"/> <xsl:if test="position() mod 2 = 1"> <td width="142" valign="top"> <xsl:call-template name="linksbalken"> <xsl:with-param name="titel"><xsl:value-of select="$NAME"/></xsl:with-param> </xsl:call-template> <br/> <xsl:apply-templates select="$RUBRIKEN" mode="übersicht"/> </td> <td><img src="http://bilder.fireball.de/bilder/1.gif" width="8"/></td> <td width="142"> <xsl:variable name="rubi"><xsl:value-of select="following::B2B/RUBRIK/@name[1]"/></xsl:variable> <xsl:if test="pan:LetpanVar(1,string($rubi))"/> <xsl:call-template name="rechtsbalken"> <xsl:with-param name="titel"><xsl:value-of select="$rubi"/></xsl:with-param> </xsl:call-template> <br/> <xsl:apply-templates select="$RUBRIKEN" mode="übersicht"/> </td> </xsl:if> </tr> </xsl:for-each> </table> </xsl:template> Marcus Klinge Web Producing ---------------------- Karzauninkat Webdesign Barner Strasse 14 22765 Hamburg Tel: 040 39834 771 Fax: 040 39834 779 -----Ursprüngliche Nachricht----- Von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Im Auftrag von Samuzeau Pascal Gesendet: Donnerstag, 12. April 2001 10:47 An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Betreff: How build an Array, N columns, M lines ? Hi, So the question is How to build it. I just want to build an array of pictures. The part of XML is : <picture number="1"> <height>128</height> <width>128</width> <name>X</name> <location>Here/</location> </picture> ... This repeat N times as long as possible. I want to display this in 6 columns max. Thank PS XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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
|