Subject: [xsl] How do I use following right????????? urgent From: "Marcus Klinge" <klinge@xxxxxxxxxxxxxxx> Date: Thu, 12 Apr 2001 13:15:53 +0200 |
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: [xsl] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How build an Array, N columns, Samuzeau Pascal | Thread | [xsl] Illegal ID values (was: DTD h, Joerg Pietschmann |
RE: [xsl] how can I modify global v, Michael Kay | Date | RE: [xsl] how can I modify global v, FINLEY, Mike |
Month |