#1 24.05.06 14:34
[xsl]Select
кусок кода:
Код: xsl:
<xsl:template match="items">
<tr>
<td valign="top" width="50%">
<table border='0' width="60%" cellpadding="0" cellspacing="2" summary="table">
<xsl:for-each select="item">
<tr>
<td valign="top" class="catitem_links" >
<xsl:if test="art!=''">
<font class="art_links"><xsl:value-of select="title"/> - </font>
</xsl:if>
<a class='links' href="http://{title}"><xsl:value-of select="art"/></a><br/>
<xsl:value-of select="brief" disable-output-escaping="yes"/>
<xsl:value-of select="full" disable-output-escaping="yes"/>
</td></tr>
</xsl:for-each>
</table>
</td>
</tr>
<tr><td><form action="./add_post.php?id={cat_id}" method='post'>
<input class='input' name='user'/>
<xsl:value-of select="cat_id"/>
<br/><textarea name='message'></textarea>
<input class='input' type='submit' name='Go' value='Go'/>
</form>
</td></tr>
</xsl:template>мне нужно получить cat_id в форме.Если форму вставить в <xsl:for-each select="item">....</xsl:for-each> то всё работает,но форма ессно выводиться несколько раз (в зависимости от кол-во item).Как select правильно прописать..ну или как нить подругому получить cat_id
Offline

