469,364 Members | 2,424 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,364 developers. It's quick & easy.

conditional formatting in XSLT

hi there,

if i have this in my XSLT file..

<input style="width:150pt;" value="">
are there any suggestions as to how i might get the value of 150 from
another element value?
thanks for any pointers,

kev bailey


this is the whole file

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:template match="/">
<html>
<head />
<body>
<xsl:for-each select="halo_form">
<xsl:for-each select="form_field">
<xsl:if test="position()=1">
<table border="1">
<thead>
<tr>
<td width="159">field_label</td>
<td width="114">field_datatype</td>
<td width="74">field_height</td>
<td width="71">field_width</td>
<td width="71">Data Entry</td>
</tr>
</thead>
<tbody>
<xsl:for-each select="../form_field">
<tr>
<td width="159">
<xsl:for-each
select="field_label">
<xsl:apply-templates />
</xsl:for-each>
</td>
<td width="114">
<xsl:for-each
select="field_datatype">
<xsl:apply-templates />
</xsl:for-each>
</td>
<td width="74">
<xsl:for-each
select="field_height">
<xsl:apply-templates />
</xsl:for-each>
</td>
<td width="71">
<xsl:for-each
select="field_width">
<xsl:apply-templates />
</xsl:for-each>
</td>
<td width="71">
<xsl:for-each
select="field_datatype">
<input
style="width:150pt; " value="">
<xsl:attribute
name="value"><xsl:value-of select="." /></xsl:attribute>
</input>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

Jul 20 '05 #1
0 1935

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Bradley | last post: by
8 posts views Thread by Dimitri Furman | last post: by
2 posts views Thread by Von Bailey | last post: by
5 posts views Thread by Andrew Chanter | last post: by
1 post views Thread by GGerard | last post: by
2 posts views Thread by Filips Benoit | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.