This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
How do I use following right????????? urgent
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] How do I use following right????????? urgent
- From: "Marcus Klinge" <klinge at karzauninkat dot de>
- Date: Thu, 12 Apr 2001 13:15:53 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]Im Auftrag von Samuzeau
Pascal
Gesendet: Donnerstag, 12. April 2001 10:47
An: xsl-list@lists.mulberrytech.com
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