This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

No Subject


<element id="42" Description="Sales Variance" type="1" cube="0" close="">
	<data id="0" date="11/05/2002" value="0000" quantity="0000"/>
	<data id="1" date="18/05/2002" value="0000" quantity="0000"/>
	<data id="2" date="25/05/2002" value="0000" quantity="0000"/>
</element>
<element id="43" Description="Lower Limit" type="2" cube="0" close="">
	<data id="0" date="11/05/2002" value="-15000" quantity=""/>
	<data id="1" date="18/05/2002" value="-15000" quantity=""/>
	<data id="2" date="25/05/2002" value="-15000" quantity=""/>
</element>
<element id="44" Description="Upper Limit" type="2" cube="0" close="true">
	<data id="0" date="11/05/2002" value="15000" quantity=""/>
	<data id="1" date="18/05/2002" value="15000" quantity=""/>
	<data id="2" date="25/05/2002" value="15000" quantity=""/>
</element>

<xsl:if match=".[@type='1']">
	<table border="0" cellspacing="1" cellpadding="1"><td></td></table>
	<div style="display:none;"><table border="0" cellspacing="1" cellpadding="1">
</xsl:if> 
<xsl:if match=".[@type='2']">
	<div style="display:none;"><table border="0" cellspacing="1" cellpadding="1">
	<tr><xsl:for-each select="./data"><td ><input type="text"></input></td></xsl:for-each></tr>
</xsl:if>
<xsl:if match=".[@close='true']">
	<tr><xsl:for-each select="./data"><td><input type="text"></input></td></xsl:for-each></tr>
	</table></div>			
</xsl:if>

A type 1 will always be followed by a type 2 and there will always be two type 2's. The type 2's need to be included within a div tag as the two rows are hidden and only displayed when the user clicks a corresponding row in a different frame. The fact that the closing tag is included in a different xsl tag seems to pose a problem. Any help!


_______________________________________________________________________
Never pay another Internet phone bill!
Freeserve AnyTime, for all the Internet access you want, day and night, only £12.99 per month.
Sign-up at http://www.freeserve.com/time/anytime



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]